Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 8:2b94df050b00, committed 2022-02-08
- Comitter:
- superphil06
- Date:
- Tue Feb 08 09:03:59 2022 +0000
- Parent:
- 7:8509fb453a2e
- Commit message:
- add addVEHICLE function
Changed in this revision
--- a/README.md Fri Mar 12 08:12:27 2021 +0000 +++ b/README.md Tue Feb 08 09:03:59 2022 +0000 @@ -1,4 +1,5 @@ # Cayenne Low Power Payload +# 8_2_2022 add addVEHICLE () function to send 8 ascii character representing Vehicle ID Payload builder library
--- 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)
{
--- a/src/CayenneLPP.h Fri Mar 12 08:12:27 2021 +0000
+++ b/src/CayenneLPP.h Tue Feb 08 09:03:59 2022 +0000
@@ -60,6 +60,7 @@
uint8_t addGyrometer(uint8_t channel, float x, float y, float z);
uint8_t addGPS(uint8_t channel, float latitude, float longitude, float meters);
uint8_t addNFC(uint8_t channel, char * NFC);
+ uint8_t addVEHICLE(uint8_t channel, char * VEH);
private:
uint8_t *buffer;