AllWize / mbus-payload

MBUS application layer payload encoder and decoder
GNU Lesser General Public License v3.0
33 stars 4 forks source link

How to defined based value? #7

Open ShubhamKharche9892 opened 4 months ago

ShubhamKharche9892 commented 4 months ago
{MBUS_CODE::ENERGY_WH, 0x00, 8, -3},
{MBUS_CODE::ENERGY_J, 0x08, 8, 0},
{MBUS_CODE::VOLUME_M3, 0x10, 8, -6},
{MBUS_CODE::MASS_KG, 0x18, 8, -3},
{MBUS_CODE::ON_TIME_S, 0x20, 1, 0},
{MBUS_CODE::ON_TIME_MIN, 0x21, 1, 0},
{MBUS_CODE::ON_TIME_H, 0x22, 1, 0},
{MBUS_CODE::ON_TIME_DAYS, 0x23, 1, 0},

How to take 0x10 in VOLUME_M3