Opening a device by IP address
In Kipling 3.1.4 you can navigate to the device selector tab and type:
1 2 3 4 5 6 7 8 9 10 11 12 13 | activeModule.viewGen.onConnect({'connectionType':{'dt': [device type number T7: 7],'ct':[connection type number usb:1, eth:3, wifi: 4], 'ipAddress':'[device ip address ex: 192.168.1.2]'},device:{'isMockDevice':false,'serialNumber':[device serial number ex: 470010111]}}).then(pr,pe) // Example T7, Ethernet, IP:192.168.1.2, SN: 470010111: activeModule.viewGen.onConnect({'connectionType':{'dt':7, 'ct':3, 'ipAddress':'192.168.1.2'}, device:{'isMockDevice':false,'serialNumber':470010111}}).then(pr,pe) // Can be simplified to: T7, Ethernet, IP:192.168.1.2 activeModule.viewGen.onConnect({'connectionType':{'dt':7, 'ct':3, 'ipAddress':'192.168.1.2'}, device:{'isMockDevice':false}}).then(pr,pe) // To make the command feel more like opening a device run: activeModule.viewGen.onConnect({'connectionType':{'dt':7, 'ct':3, 'ipAddress':'192.168.1.2'}, device:{'isMockDevice':false}}).then(function(res){MODULE_LOADER.loadModuleByName(MODULE_LOADER.current_module_data.name);console.log(res);},pe) // Many of the function calls return promises as implemented by the npm library "q". There are two // globally defined functions "pr" and "pe" that print the result, and print the error. |