I'm trying to reset the MYRIDA NSC2 each time a network is loaded. That is, i'm trying to set MYRIAD_FORCE_RESET = YES using the Python API. The docs say it must be set using the set_config() method, but i have been ubale to do this after reading the docs. Would you be able to provide a python example of how this should be done? Or point to an example?
Thanks in advance.
You can use netiface, https://github.com/raphdg/netifaces
#This function returns returns True when an IP address is associated to a given interface(connected to internet)
addr = netifaces.ifaddresses(interface)
return netifaces.AF_INET in addr
if addr ==1 : do_something
You can check this out too: https://email@example.com/python-network-manager-tutorial-c504cdb8fc76
Hope my answer helps!
I think you have misunderstood me. I mean each i want to enable the force reset of all booted devices when new ExecutableNetwork is created with the python API as metioned here .
try to run python sample & omit the KEY_ prefix
This part is specifying key values as raw strings (that is, when using Python API) This part is Omit Key_prefix