Regular Member

Re: How to figure out at which memory address each data from the sensors is being stored in?

Hey Boris,

Varathan tackled the Kepware (client) side of things, but on the server side (the tile) you should look into the Python script called SigmaTile_SenseHat.  There's a thread called update_sensor_datastore which queries the sensors and updates the datastore.

There's a little bit of hacking in this function - I couldn't initialize the modbus datastore to hold 32 bit floats, so I took that float and split it into two uint16s which are then stored in the datastore consecutively.  Kepware can then pack those two uint16s back to a 32 bit float, so that it interprets the number correctly.

Let me know if you have any questions!

Milan