Firmware update
The firmware can be updated by performing a CoAP PUT operation of the image file to '/fw/image'.
1. Firmware Update over Serial Port
The firmware update operation can be done using a CoAP client running over MUP1. In the example below, the image file in /tmp/rel.fip is transferred using the MUP1 client tool.
mup1ct -d /dev/ttyACM0 coap put fw/image < /tmp/rel.fip
2. Firmware Update over Network
The firmware update operation can be done using a CoAP client running over IP. In the example below, the image file in /tmp/rel.fip is transferred using the libcoap client tool. The IP address 1.2.3.4 has been assigned to the switch prior to the operation.
coap-client -m put coap://1.2.3.4/fw/image -f /tmp/rel.fip