Closed hemanthvhr closed 7 years ago
Nice! Thanks for submitting this. I assume you've tested this? I'll have to trust you since I don't own my own Series 2 modules.
So someone with a Series 2 module would simply import your files rather than the originals in order to run the examples? I'll amend my accompanying blog post to point out if this is correct.
First ,thanks for this simple library for beginners and also thanks for your friendly response .Yes ,I have tested this and it works for series 2 modules ,but at present it only sends if we know the 16-bit address of the receiver module ,because the 64 bit address is hard coded to the broadcast address(0x000000000000FFFF) .We could just include another argument for the send and sendStr() method for the 64 bit address, for it to work.
Sorry for the delay! I'll go ahead and merge this. I'm going to update my blog post to reference your comment above regarding XBee v2 usage.
Thank you for the response .
XBee.py and XBee_Threaded.py have been slightly modified to XBee_series_2.py and XBee_Threaded_Series_2.py respectively to send and receive messages for series 2 xbee modules (XB24-ZB) to send and receive messages in API 2 Format