Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address #31

Closed
balucio opened this issue Jan 10, 2021 · 0 comments
Closed
Labels
Support Library support

Comments

@balucio
Copy link

balucio commented Jan 10, 2021

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 (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;
@balucio balucio closed this as completed Jan 10, 2021
@khoih-prog khoih-prog added the Support Library support label Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants