sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Functions | Variables
DeviceGeneric Namespace Reference

Classes

class  GenericPJON
 
class  ThroughSerial
 
class  LocalUDP
 

Functions

def receive_func
 
def error_func
 

Variables

int ID = 45
 
tuple bus = ThroughSerial(ID, sys.argv[1], int(sys.argv[2]))
 
tuple buf = sys.stdin.read()
 
tuple timer0 = time.time()
 bus.update() bus.receive(1000) bus.loop(timeout_us=1000) More...
 
tuple timer1 = time.time()
 
int ret = -1
 

Function Documentation

def DeviceGeneric.error_func ( )
...
def DeviceGeneric.receive_func (   self,
  data,
  length,
  packet_info 
)
...

Variable Documentation

list DeviceGeneric.buf = sys.stdin.read()
tuple DeviceGeneric.bus = ThroughSerial(ID, sys.argv[1], int(sys.argv[2]))
int DeviceGeneric.ID = 45
int DeviceGeneric.ret = -1
tuple DeviceGeneric.timer0 = time.time()

bus.update() bus.receive(1000) bus.loop(timeout_us=1000)

bus.update() ret = bus.receive(1000) # 1ms timeout packets_to_send, ret = bus.loop(timeout_us=1000)

tuple DeviceGeneric.timer1 = time.time()