Basic equations and unpacking

Post Reply
travisj
Noob
Posts: 4
Joined: Fri Jun 26, 2020 5:37 pm

Basic equations and unpacking

Post by travisj » Sat Jun 27, 2020 4:33 pm

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.

kabiroo
Noob
Posts: 1
Joined: Wed Jun 23, 2021 5:30 pm

Re: Basic equations and unpacking

Post by kabiroo » Wed Jun 23, 2021 5:35 pm

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");

Post Reply