payload encoder testing

This commit is contained in:
Klaus K Wilting 2018-06-16 20:20:19 +02:00
parent 509b8b6cd3
commit ec5b1df77c
3 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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); }

View File

@ -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