Hi,
I use a pca10056 with the "mqttsn_sleepy_publisher" example. Unfortunately, I cant connect to the mqttsn gateway. It throws me:
"NRF_LOG_ERROR("CONNECT message could not be sent. Error: 0x%x\r\n", err_code);"
I use the standard code for the DK and the border router. I just formed my own thread network and adjusted the credentials (panid ...) within the DK. Connecting and transmitting with radio ON works fine.
I have found that ticket. So I guess it might has something to do with those values:
#define DEFAULT_CHILD_TIMEOUT 40 /**< Thread child timeout [s]. */ #define DEFAULT_POLL_PERIOD 1000 /**< Thread Sleepy End Device polling period when MQTT-SN Asleep. [ms] */ #define SHORT_POLL_PERIOD 100 /**< Thread Sleepy End Device polling period when MQTT-SN Awake. [ms] */ #define SEARCH_GATEWAY_TIMEOUT 5 /**< MQTT-SN Gateway discovery procedure timeout in [s]. */
Do you have any idea, whether those values need to change? I know what they should do, but changing them didnt help much.
Ps: I use Linux, SDK17, VS-Code, pca10056
