Applicable Versions
NetSim Standard
NetSim Pro
NetSim Academic

Applicable Releases

Configuring a sensor node as SDN controller is similar to other examples discussed in the help document. 
In the controller Sensor node:
In other sensor devices (the name of the sensor that acts as SDN controller needs to be specified):

Further, enabling packet trace and event trace options prior to running the simulation will help you in analyzing the flow of commands from the controller to other devices. Viewing packet trace entries are explained in the help document. Similarly, entries can be found in the event trace too.

Please note that in WSN network, not all SDN commands are supported. Since, the sensor nodes do not have support for ICMP protocol, ping command will not work for sensor devices.