Hello,
I use the librairy PubSubClient for the MQTT.
I send string, and it works very well :
sprintf(TimeString, "%02d:%02d",RTC_hour,RTC_minute);
mqttClient.publish("jeedom/swim/out/hour", TimeString);
I wan't to sebd byte or unsigned int, but it not works
mqttClient.publish("jeedom/swime/out/ph" , (byte*) &PHvalue, sizeof(PHvalue));
the value is :
where is the error ?
Thanks