Page 1 of 1

Basic equations and unpacking

Posted: Sat Jun 27, 2020 4:33 pm
by travisj
Especially with MQTT making messages compact is helpful in keeping bandwidth low. Simple equations and bitwise math would be very helpful.

For example I often pack 8 digital states in a single byte instead of having 8 boolean values.

Re: Basic equations and unpacking

Posted: Wed Jun 23, 2021 5:35 pm
by kabiroo
I have the code to publish data using MQTT, but cannot publish to asksensors.com. Anyone can help me?
My code is:

client.publish("publish/kabiroo/xxxGqQf7LxxxL3lZeM4M90UaxxxtExxx", "m1=57");