Cayenne-LPP avec NFC
Diff: src/CayenneLPP.cpp
- Revision:
- 8:2b94df050b00
- Parent:
- 7:8509fb453a2e
diff -r 8509fb453a2e -r 2b94df050b00 src/CayenneLPP.cpp --- a/src/CayenneLPP.cpp Fri Mar 12 08:12:27 2021 +0000 +++ b/src/CayenneLPP.cpp Tue Feb 08 09:03:59 2022 +0000 @@ -124,6 +124,17 @@ return cursor; } +uint8_t CayenneLPP::addVEHICLE(uint8_t channel, char * VEH) +{ + int index; + buffer[cursor++] = channel; + for (index=0; index <4; index++) { + buffer[cursor++]=VEH[index] ; + } + return cursor; +} + + uint8_t CayenneLPP::addTemperature(uint8_t channel, float celsius) {