Code: Select all
void loop()
{
MQTT_connect();
// bool x = TRUE; // = call of overloaded 'publish(bool&)' is ambiguous
// byte x = 255; // = call of overloaded 'publish(byte&)' is ambiguous
// int x = -32768; // = call of overloaded 'publish(int&)' is ambiguous
// long x = -2147483648; // okay
// float x = 21.43; // okay
// uint8_t x = 255; // = call of overloaded 'publish(uint8_t&)' is ambiguous
// int16_t x = -32768; // = call of overloaded 'publish(int16_t&)' is ambiguous
uint32_t x = 4294967295; // okay
sometopic.publish(x);
delay(5000);
}
Code: Select all
struct structname
{
long structmember;
float anotherstructmember;
uint32_t yetanotherstructmember;
} structvariable;
void loop()
{
MQTT_connect();
sometopic.publish(structvariable.structmember);
delay(5000);
}