TinkerWorks / HomeSensorHub

GNU General Public License v3.0
3 stars 2 forks source link

Implement Payload as a separate class. #10

Closed BabyCakes13 closed 4 years ago

BabyCakes13 commented 4 years ago

This should be converted to a limited number of decimal points to be easier to interpret on the other side.

Originally posted by @alex-sever-h in https://github.com/alex-sever-h/HomeSensorHub/pull/8

The class will have the attributes collected form a sensor and it will handle their conversion and structure before being sent to mqtt.