changed Cayenne LPP data type

This commit is contained in:
Klaus K Wilting 2018-07-24 15:22:28 +02:00
parent b3da0989ce
commit be5959a078

View File

@ -198,13 +198,13 @@ void PayloadConvert::addCount(uint16_t value1, uint16_t value2) {
#if (PAYLOAD_ENCODER == 3) #if (PAYLOAD_ENCODER == 3)
buffer[cursor++] = LPP_COUNT_WIFI_CHANNEL; buffer[cursor++] = LPP_COUNT_WIFI_CHANNEL;
#endif #endif
buffer[cursor++] = LPP_ANALOG_INPUT; // workaround, type meter not found? buffer[cursor++] = LPP_LUMINOSITY; // workaround, type meter not found?
buffer[cursor++] = highByte(val1); buffer[cursor++] = highByte(val1);
buffer[cursor++] = lowByte(val1); buffer[cursor++] = lowByte(val1);
#if (PAYLOAD_ENCODER == 3) #if (PAYLOAD_ENCODER == 3)
buffer[cursor++] = LPP_COUNT_BLE_CHANNEL; buffer[cursor++] = LPP_COUNT_BLE_CHANNEL;
#endif #endif
buffer[cursor++] = LPP_ANALOG_INPUT; // workaround, type meter not found? buffer[cursor++] = LPP_LUMINOSITY; // workaround, type meter not found?
buffer[cursor++] = highByte(val2); buffer[cursor++] = highByte(val2);
buffer[cursor++] = lowByte(val2); buffer[cursor++] = lowByte(val2);
} }