code works fine, tried to tie the device into mdash and get the following errors. I do have a custom MQTT server defined, but i included the mdash library as directed.
Aug 1 14:13:28.728] mg_ssl_if_mbedtls.c:207 0x3fff1534 mbedTLS error: -0x2700
[Aug 1 14:13:28.734] mgos_rpc_channel_ws:205 0x3fff09ec TCP connect failed: -3
[Aug 1 14:13:28.745] mgos_mongoose.c:66 New heap free LWM: 24968
[Aug 1 14:13:33.743] mgos_rpc_channel_ws:261 0x3fff09ec Connecting to wss://mdash.net/api/v2/rpc, SSL? 1
[Aug 1 14:13:34.550] mg_ssl_if_mbedtls.c:35 0x3fff15bc ciphersuite: TLS-RSA-WITH-AES-128-GCM-SHA256
[Aug 1 14:13:34.697] mg_ssl_if_mbedtls.c:35 0x3fff15bc x509_verify_cert returned -9984
[Aug 1 14:13:34.703] mg_ssl_if_mbedtls.c:35 0x3fff15bc The certificate is not correctly signed by the trusted CA
[Aug 1 14:13:34.710]
[Aug 1 14:13:34.710] mg_ssl_if_mbedtls.c:207 0x3fff15bc mbedTLS error: -0x2700
[Aug 1 14:13:34.715] mgos_rpc_channel_ws:205 0x3fff09ec TCP connect failed: -3
The library uses Websocket connection, not MQTT. Thus is it possible to use the library together with the custom MQTT server. However, we discourage that since the Websocket support may be deprecated in the future.
I managed to get it working by adding teh CA-bundle and deleting the lines for the SSL cert and key. seems good to go for now, hopefully you give a fair notice when you plan to deprecate websockets. Also, a side question, why cant I rename “deviceXX”, or am i doing something wrong? i assumed it would update with the actual device ID, but its not.