bugfix cayenne payload

This commit is contained in:
Verkehrsrot 2018-07-21 13:47:14 +02:00 committed by GitHub
parent d6619d6cff
commit c477376801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ void CayenneLPP::addCount(uint16_t value1, uint16_t value2) {
buffer[cursor++] = value1; buffer[cursor++] = value1;
buffer[cursor++] = LPP_COUNT_BLE_CHANNEL; buffer[cursor++] = LPP_COUNT_BLE_CHANNEL;
buffer[cursor++] = LPP_ANALOG_INPUT; // workaround, type meter not found? buffer[cursor++] = LPP_ANALOG_INPUT; // workaround, type meter not found?
buffer[cursor++] = value1 >> 8; buffer[cursor++] = value2 >> 8;
buffer[cursor++] = value2; buffer[cursor++] = value2;
} }
@ -245,4 +245,4 @@ void CayenneLPP::addStatus(uint16_t voltage, uint64_t uptime, float cputemp) {
buffer[cursor++] = LPP_TEMPERATURE; buffer[cursor++] = LPP_TEMPERATURE;
buffer[cursor++] = (uint16_t)cputemp >> 8; buffer[cursor++] = (uint16_t)cputemp >> 8;
buffer[cursor++] = (uint16_t)cputemp; buffer[cursor++] = (uint16_t)cputemp;
} }