changed cayenne data type (2)
This commit is contained in:
parent
be5959a078
commit
cc141bcb67
@ -193,20 +193,18 @@ void PayloadConvert::writeBitmap(bool a, bool b, bool c, bool d, bool e, bool f,
|
||||
#elif (PAYLOAD_ENCODER == 3 || PAYLOAD_ENCODER == 4)
|
||||
|
||||
void PayloadConvert::addCount(uint16_t value1, uint16_t value2) {
|
||||
uint16_t val1 = value1 * 100;
|
||||
uint16_t val2 = value2 * 100;
|
||||
#if (PAYLOAD_ENCODER == 3)
|
||||
buffer[cursor++] = LPP_COUNT_WIFI_CHANNEL;
|
||||
#endif
|
||||
buffer[cursor++] = LPP_LUMINOSITY; // workaround, type meter not found?
|
||||
buffer[cursor++] = highByte(val1);
|
||||
buffer[cursor++] = lowByte(val1);
|
||||
buffer[cursor++] = highByte(value1);
|
||||
buffer[cursor++] = lowByte(value1);
|
||||
#if (PAYLOAD_ENCODER == 3)
|
||||
buffer[cursor++] = LPP_COUNT_BLE_CHANNEL;
|
||||
#endif
|
||||
buffer[cursor++] = LPP_LUMINOSITY; // workaround, type meter not found?
|
||||
buffer[cursor++] = highByte(val2);
|
||||
buffer[cursor++] = lowByte(val2);
|
||||
buffer[cursor++] = highByte(value2);
|
||||
buffer[cursor++] = lowByte(value2);
|
||||
}
|
||||
|
||||
void PayloadConvert::addConfig(configData_t value) {
|
||||
|
Loading…
Reference in New Issue
Block a user