sml_parser
sml_parser copied to clipboard
Generate OBISHandlers dynamically
Hi, im trying to Generate the OBIS Handlers dynamically to switch between different smart meter types. Is there a working solution to achive this? Ive spend a lot of time figuring out how to get the data dynamic but with no succsess :/
OBISHandler OBISHandlers[] = { {{ 0x81, 0x81, 0xc7, 0x82, 0x03, 0xff }, &Manufacturer}, /* 129-129:199.130.3255 / {{ 0x01, 0x00, 0x01, 0x08, 0x01, 0xff }, &PowerT1}, / 1- 0: 1. 8.1255 (T1) / {{ 0x01, 0x00, 0x01, 0x08, 0x00, 0xff }, &PowerSum}, / 1- 0: 1. 8.0255 (T1 + T2) / {{ 0x01, 0x00, 0x0F, 0x07, 0x00, 0xff }, &PowerW}, / 1- 0: 15. 7.0255 (Watt) */ {{ 0, 0 }} };