This repository was archived by the owner on Nov 25, 2021. It is now read-only.
This repository was archived by the owner on Nov 25, 2021. It is now read-only.
Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address #24
Closed
Description
Hi, I'm trying to use this useful library with "Dynamic Params". I defined the struct as reported at end, but when I try to Serial print the value value of SENSOR_TYPE
(ex: Serial.print("TIPO SENSORE ");Serial.println(SENSOR_TYPE);
) I get the exception as in subject.
Can you help me?
Thank you.
#define INFLUXDB_URL_LEN 251
char INFLUXDB_URL[INFLUXDB_URL_LEN + 1] = "http://influx.sapacasa.it:8086";
#define INFLUXDB_NAME_LEN 31
char INFLUXDB_NAME[INFLUXDB_NAME_LEN + 1] = "domus";
#define INFLUXDB_USER_LEN 31
char INFLUXDB_USER[INFLUXDB_USER_LEN + 1] = "usor";
#define INFLUXDB_PASS_LEN 31
char INFLUXDB_PASS[INFLUXDB_PASS_LEN + 1] = "usor";
#define SENSOR_NAME_LEN 31
char SENSOR_NAME[SENSOR_NAME_LEN + 1] = "SonOff";
#define SENSOR_TYPE_LEN 11
char SENSOR_TYPE[SENSOR_TYPE_LEN + 1] = "UNKNOW";
#define SENSOR_LOCATION_LEN 31
char SENSOR_LOCATION[SENSOR_LOCATION_LEN + 1] = "stanza letto";
#define SENSOR_BOOT_STATE_LEN 12
char SENSOR_BOOT_STATE[SENSOR_BOOT_STATE_LEN + 1] = "ultimo";
MenuItem myMenuItems [] = {
{ "ixul", "Url InfluxDb", INFLUXDB_URL, INFLUXDB_URL_LEN },
{ "ixdb", "Schema Influx", INFLUXDB_NAME, INFLUXDB_NAME_LEN },
{ "ixun", "Utente Influx", INFLUXDB_USER, INFLUXDB_USER_LEN },
{ "ixup", "Password Influx", INFLUXDB_PASS, INFLUXDB_PASS_LEN },
{ "snnm", "Nome Sensore", SENSOR_NAME, SENSOR_NAME_LEN },
{ "sndv", "Tipo Sensore", SENSOR_TYPE, SENSOR_TYPE_LEN },
{ "ubic", "Ubicazione", SENSOR_LOCATION, SENSOR_LOCATION_LEN },
{ "bste", "Stato iniziale", SENSOR_BOOT_STATE, SENSOR_BOOT_STATE_LEN },
};
uint16_t NUM_MENU_ITEMS = sizeof(myMenuItems) / sizeof(MenuItem); //MenuItemSize;