bsecstate load/save implemented; bugfix packed_decoder.js

This commit is contained in:
Klaus K Wilting committed 2018-12-31 11:26:05 +01:00
1 parent 184e1e7d84
commit f26b7a545c
10 files changed
+90 -16

No files matched your search

+3
View File
@@ -47,8 +47,11 @@ const uint8_t bsec_config_iaq[454] = {
255, 255, 255, 255, 255, 255, 255, 255, 255, 44, 1, 0, 0, 0, 0,
239, 79, 0, 0};
// Helper functions declarations
int bme_init();
void bme_loop(void *pvParameters);
int checkIaqSensorStatus(void);
void loadState(void);
void updateState(void);
#endif
+4
View File
@@ -7,6 +7,10 @@
#include "spislave.h"
#include <lmic.h>
#ifdef HAS_BME
#include "bme680mems.h"
#endif
void doHousekeeping(void);
void do_timesync(void);
uint64_t uptime(void);
+2 -1
View File
@@ -54,6 +54,7 @@ typedef struct {
uint8_t runmode; // 0=normal, 1=update
uint8_t payloadmask; // bitswitches for payload data
char version[10]; // Firmware version
char bsecstate[BSEC_MAX_STATE_BLOB_SIZE+1]; // init BSEC state for BME680 sensor
} configData_t;
// Struct holding payload for data send queue
@@ -87,7 +88,7 @@ extern configData_t cfg; // current device configuration
extern char display_line6[], display_line7[]; // screen buffers
extern uint8_t volatile channel; // wifi channel rotation counter
extern uint16_t volatile macs_total, macs_wifi, macs_ble,
batt_voltage; // display values
batt_voltage; // display values
extern hw_timer_t *channelSwitch, *sendCycle, *displaytimer;
extern SemaphoreHandle_t I2Caccess;