Sending string to emonpi = How to configure emonhub.conf

I would like to send a text string (as opposed to numbers) from one of my emonTHs to emonpi and emoncms. I tried various datacodes but could not find one that allowed strings. Can someone point me in the right direction? (Like to a list of all supported datacodes for emonhub).


You could try ‘c’ char data code, not tried this ourselves. Here’s the emonhub config documentation:

Let us know how you get on.

I’ll be interested in how you get on with this too.

Don’t forget that when specifying the node definition in datacodes the packet size is then set (as a sum of the datacode sizes) so your strings will need to be of a fixed length, so some padding may be required in places.

Will do. I simply want to send a LOW, or HIGH (as opposed to a 0 or 1! I’ll give it a try and see how it works out!