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