Skip to content

Generate OBISHandlers dynamically #28

@CRSLEE

Description

@CRSLEE

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.1
255 (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.0
255 (Watt) */
{{ 0, 0 }}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions