Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def my_data_received_callback(xbee_message):
- print('has been got back')
- data=xbee_message.data.decode()
- print(data)
- self.loop_check=1
- print('..................................')
- while(self.loop_check==0):
- self.currentlocal.add_data_received_callback(my_data_received_callback)
- self.loop_check=0
- self.currentlocal.close()
- except:
- self.currentlocal.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement