This is an old revision of the document!


Secure your node

To secure your nodes you have to upload the SecurityPersonalizer.ino sketch that comes pre-installed with the MySensors library in the Arduino IDE.

The only operations that you have to do is to modify the lines:

  • #define MY_HMAC_KEY
  • #define MY_AES_KEY
  • #define MY_SOFT_SERIAL

with your personal keys (in hexadecimal format) previously generated in the gateway and then upload the sketch to your board or bare microcontroller.
In the serial monitor of the Arduino IDE, if nothing is go wrong, you should see a success message. Now your node is able to communicate with the gateway in a secure way.

If you wont to delete the keys from the eeprom of your board, run the ClearEepromConfig.ino sketch that comes pre-installed with the MySensors library in the Arduino IDE.

  • how_to/mysensors/sign_your_node.1553206106.txt.gz
  • Last modified: 2019/03/21 22:08
  • by franzunix