SmartMeshSDK
 All Classes Namespaces Functions Variables Groups
SimpleIPUpstreamMote Namespace Reference

Variables

list here = sys.path[0]
 
int UDP_PORT_NUMBER = 60000
 
string STRING_TO_PUBLISH = "Hello, World!"
 
int PUBLISH_RATE_SEC = 5
 
tuple moteconnector = IpMoteConnector.IpMoteConnector()
 
tuple serialport = raw_input("Enter the serial API port of SmartMesh IP Mote (e.g. COM15): ")
 
tuple res = moteconnector.dn_getParameter_moteStatus()
 
 socketId = res.socketId
 
list destIP
 
 destPort = UDP_PORT_NUMBER,
 
int serviceType = 0
 
int priority = 1
 
int packetId = 0xffff
 
list payload = [ord(i) for i in STRING_TO_PUBLISH]
 

Variable Documentation

list SimpleIPUpstreamMote.destIP
Initial value:
1 = [
2  0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
3  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
4  ]
SimpleIPUpstreamMote.destPort = UDP_PORT_NUMBER,
list SimpleIPUpstreamMote.here = sys.path[0]
tuple SimpleIPUpstreamMote.moteconnector = IpMoteConnector.IpMoteConnector()
int SimpleIPUpstreamMote.packetId = 0xffff
list SimpleIPUpstreamMote.payload = [ord(i) for i in STRING_TO_PUBLISH]
int SimpleIPUpstreamMote.priority = 1
int SimpleIPUpstreamMote.PUBLISH_RATE_SEC = 5
tuple SimpleIPUpstreamMote.res = moteconnector.dn_getParameter_moteStatus()
tuple SimpleIPUpstreamMote.serialport = raw_input("Enter the serial API port of SmartMesh IP Mote (e.g. COM15): ")
int SimpleIPUpstreamMote.serviceType = 0
SimpleIPUpstreamMote.socketId = res.socketId
string SimpleIPUpstreamMote.STRING_TO_PUBLISH = "Hello, World!"
int SimpleIPUpstreamMote.UDP_PORT_NUMBER = 60000