payload encoder testing
This commit is contained in:
parent
509b8b6cd3
commit
ec5b1df77c
@ -130,8 +130,6 @@ void do_send(osjob_t *j) {
|
|||||||
if ((cfg.gpsmode) && (gps.location.isValid())) {
|
if ((cfg.gpsmode) && (gps.location.isValid())) {
|
||||||
gps_read();
|
gps_read();
|
||||||
payload.addGPS(gps_status);
|
payload.addGPS(gps_status);
|
||||||
} else {
|
|
||||||
ESP_LOGI(TAG, "No valid GPS position or GPS disabled");
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -81,12 +81,12 @@ void TTNplain::addStatus(uint16_t voltage, uint64_t uptime, float cputemp) {
|
|||||||
|
|
||||||
TTNserialized::TTNserialized(uint8_t size) {
|
TTNserialized::TTNserialized(uint8_t size) {
|
||||||
buffer = (uint8_t *)malloc(size);
|
buffer = (uint8_t *)malloc(size);
|
||||||
LoraEncoder message(buffer);
|
//LoraEncoder message(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
TTNserialized::~TTNserialized(void) { free(buffer); }
|
TTNserialized::~TTNserialized(void) { free(buffer); }
|
||||||
|
|
||||||
void TTNserialized::reset(void) { }
|
void TTNserialized::reset(void) { delete buffer; }
|
||||||
|
|
||||||
uint8_t TTNserialized::getSize(void) { return sizeof(buffer); }
|
uint8_t TTNserialized::getSize(void) { return sizeof(buffer); }
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
uint8_t *buffer;
|
uint8_t *buffer;
|
||||||
LoraEncoder message(byte *buffer);
|
LoraEncoder message(byte *buffer);
|
||||||
//LoraEncoder(byte *buffer);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user