Hi, I have the following code:
void *l;
l=&par.ambient;
if(conectada)
{
message.payload=l;
MQTTPublish(&c,"light",&message);
}
par.ambient is declared as float.
message.payload must be a void *
my problem is that MQTTPublish, publish the direcction of the array and not its value. I need the value. Someone can help me?
Thanks
P.S: sorry about my english.