Re: publishing variables to MQTTBOX
Posted: Wed Jan 10, 2018 5:28 pm
New questions....
1. I would also like to publish the RGB values, i've tried a few different commands to do this, but because this is the void loop, i'm receiving various errors i would be happy with publishing the whole void loop
void printRgbValues()
as one payload to the MQTTBox or more specifically just the RGB values line like in the serial monitor version
Serial.println("Mapped(r,g,b)=(" + String(rgbLed.redMappedValue) + "," + String(rgbLed.greenMappedValue) + "," + String(rgbLed.blueMappedValue) + ")");
what example commands could i use for either or both of these results?
2. I'd like to group all the variables outputs (the button counter, the 'on / off' message and the RGB values) to MQTTBox as one payload, is that possible?
1. I would also like to publish the RGB values, i've tried a few different commands to do this, but because this is the void loop, i'm receiving various errors i would be happy with publishing the whole void loop
void printRgbValues()
as one payload to the MQTTBox or more specifically just the RGB values line like in the serial monitor version
Serial.println("Mapped(r,g,b)=(" + String(rgbLed.redMappedValue) + "," + String(rgbLed.greenMappedValue) + "," + String(rgbLed.blueMappedValue) + ")");
what example commands could i use for either or both of these results?
2. I'd like to group all the variables outputs (the button counter, the 'on / off' message and the RGB values) to MQTTBox as one payload, is that possible?