mg_connect_opts.ssl_cert
is the path to the client certificate file, or is the actual content of this client certificate file?
[Feb 11 11:50:20.902] mongoose.c:4912 0x3fff378c received handshake message [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_flush_output() returned -78 (-0x004e) [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_write_record() returned -78 (-0x004e) [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_send_alert_message() returned -78 (-0x004e)
/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:169:3: error: implicit declaration of function 'mg_file_upload_handler'; did you mean 'upload_handler'? [-Werror=implicit-function-declaration]
mg_file_upload_handler(c, ev, p, upload_fname, user_data);
^~~~~~~~~~~~~~~~~~~~~~
upload_handler
/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c: In function 'mgos_http_ev':
/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:199:10: error: 'MG_EV_HTTP_MULTIPART_REQUEST' undeclared (first use in this function); did you mean 'MG_EV_HTTP_REQUEST'?
case MG_EV_HTTP_MULTIPART_REQUEST: {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
MG_EV_HTTP_REQUEST
/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:199:10: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
/mongoose-os/platforms/esp32/src/esp32_src.mk:102: recipe for target 'mgos_http_server.c.o' failed
make[1]: *** [mgos_http_server.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/build/objs/mosapp'
/opt/Espressif/esp-idf/make/project.mk:635: recipe for target 'component-mosapp-build' failed
make: *** [component-mosapp-build] Error 2
In file included from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/include/mgos_freertos.h:26,
from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/src/mgos_freertos.c:18:
/Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/mongoose/include/mongoose.h:1919:31: error: 'struct tm' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
double cs_timegm(const struct tm *tm);
^~
In file included from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/include/mgos_freertos.h:26,
from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/src/mgos_freertos_core_dump.c:18:
/Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/mongoose/include/mongoose.h:1919:31: error: 'struct tm' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
double cs_timegm(const struct tm *tm);
^~
cc1: all warnings being treated as errors
@compwiz21 Have you been to the support forum ? Have you read the tutorials ? You are not installing, you are cloning a repo and you seem to have a wrong URL for it. Try asking here
You are shure? I'm current test 2.19.1 mos tool for bionic ubuntu and have this error too! I'm not compile mos - i'm install with apt. And with old mos 2.19 compilled from sources - not have this error!
root@DESKTOP-5I223JS:~/mo19.1# mos clone https://github.com/mongoose-os-apps/demo-js app19
Error: app19: Local copy in "demo-js" does not exist and fetching is not allowed
/build/mos-HUa0jy/mos-2.19.1+9bf406d~bionic0/cli/build/swmodule.go:262:
/build/mos-HUa0jy/mos-2.19.1+9bf406d~bionic0/cli/main.go:198: clone failed
root@DESKTOP-5I223JS:~/mos# ./mos clone https://github.com/mongoose-os-apps/demo-js app19
app19: Does not exist, cloning from "https://github.com/mongoose-os-apps/demo-js"...
app19: Checking out master...
app19: Done, hash e4ecb176b4e95f53e5938724b6cb6723b4b95fad
the problem is this strange commit -
https://github.com/mongoose-os/mos/commit/37a6dad3960dfe9d8527252da5fb486b2f633ed1
} else if os.IsNotExist(err) {
if pullInterval == 0 {
return fmt.Errorf("%s: Local copy in %q does not exist and fetching is not allowed", name, targetDir)
}
Strange because - if os.IsNotExist(err) - we have always this error because mos need clone to this dir. Or increase pullinterval - just to know what it is :-D
And i'm find what cause crashes with _umm_free on cc3220 with 2.19+ FW
This commit -
https://github.com/cesanta/mongoose-os/commit/aae44c3113f3fbaffde1d06210fe72f4e1e215b0
In 2.18 we have generated mgos_config struct -
const struct mgos_config mgos_config_defaults = {
.i2c.enable = 1,
.i2c.freq = 100000,
.i2c.debug = 0,
.i2c.sda_pin = 2,
.i2c.scl_pin = 1,
.sys.atca.enable = 0,
.sys.atca.i2c_bus = 0,
........
and in
file - mongoose-os/src/mgos_sys_config.c
in function - mgos_sys_config_load_level_internal
this struct copying to global mgos_sys_config
....
// Start with compiled-in defaults.
memcpy(cfg, &mgos_config_defaults, sizeof(*cfg));
....
and later this global struct using to operate with configs.
But in 2.19+ struct mgos_config_defaults not generating - and global mgos_sys_config edited with function
void mgos_config_set_defaults(struct mgos_config *cfg)
First crash occure in function -
enum mgos_init_result mgos_sys_config_init(void)
in -
if (mgos_sys_config_get_device_id() != NULL) {
char *device_id = strdup(mgos_sys_config_get_device_id()); ---- i'm think strdup make something wrong...
mgos_expand_mac_address_placeholders(device_id);
mgos_sys_config_set_device_id(device_id);
free(device_id); - ----------------------------------------- this line make crash board
}
If i'm comment ..free... - fw crashing on next free..
If i'm revert and again generate struct mgos_config_defaults and use memcpy to copy this to global mgos_sys_config - now fw never crashing..
Anybody know why new code cause crashing on cc3220? Maybe TI compiller bug, but i'm try newer - not help. Or this commit have bugs and need rewrite some stuff?