Commit fe6817bc authored by Qasim Lone's avatar Qasim Lone

fixed typos

parent 35922cf4
......@@ -23,11 +23,8 @@ class LoraModule(wishful_module.AgentModule):
# bytesize= serial.EIGHTBITS,parity = serial.PARITY_NONE,
# stopbits=serial.STOPBITS_ONE, timeout=10)
#self.node = dev
''''
Functions below are used to authenticate the lorawan device
'''
@wishful_module.bind_function(upis.lora.radio.set_dev_eui)
def set_dev_eui(self, deveui):
self.log.info("Set Parameters called".format())
......@@ -38,7 +35,7 @@ Functions below are used to authenticate the lorawan device
stopbits=serial.STOPBITS_ONE, timeout=10)
# Adding start and end char to ensure data is recieved properly
data = '^eu{}$'.format(deveui)
data = '^eu{}$0000000000000000'.format(deveui)
# Writing data on serial prot
self.log.info("Data sent by controller is: {}".format(data))
dev.write(data.encode('utf-8'))
......@@ -96,12 +93,7 @@ Functions below are used to authenticate the lorawan device
time.sleep(0.2) # wait
dev.close()
return 1
''''
Functions below are used to change transmission parameters of the lorawan device
'''
@wishful_module.bind_function(upis.lora.radio.set_adr)
def set_adr(self, adr):
self.log.info("Set Parameters called".format())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment