Hi jdelaet,
thanks for the answer. I fixed the sketch by adding that line of code, however I am still struggling to have it working. In fact, I can establish a connection with server only once at the startup of both the arduino end-node and gateway. As soon as I remove power to the arduino board (or alternatively push the arduino’s reset button) I can’t activate my device any longer. I guess that at the end of a session I should be able to normally open a new one and get new keys for the end-node.
Look forward to get useful tips to overcome this issue!
Regards,
Salvatore