File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
bluetooth/ReceiveBluetoothFileSample
micropython/ReceiveMicroPythonDataSample
relay/ReceiveUserDataRelaySample
functional_tests/configuration Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 60
60
process:
61
61
62
62
>> START message received, saving data to file...
63
- >> END message received, file 'received_file_20190627120254.txt '
63
+ >> END message received, file '<file_name> '
64
64
65
65
Verify that the received file is created successfully and is the same as the
66
66
one you sent with the mobile application.
Original file line number Diff line number Diff line change 17
17
* One XBee3 module in API mode and its corresponding carrier board (XBIB
18
18
or equivalent).
19
19
* The XCTU application (available at www.digi.com/xctu).
20
- * An Android or iOS device with the Digi XBee Mobile application installed
21
- (available at Google Play and App Store).
20
+ * The PyCharm IDE with the Digi XBee MicroPython plugin installed.
22
21
23
22
24
23
Compatible protocols
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def main():
32
32
33
33
def relay_data_callback (relay_message ):
34
34
print ("Relay data received from %s >> '%s'" %
35
- (relay_message .relay_interface .name ,
35
+ (relay_message .local_interface .name ,
36
36
relay_message .data .decode ("utf-8" )))
37
37
38
38
device .add_user_data_relay_received_callback (relay_data_callback )
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ def main():
34
34
device .open ()
35
35
36
36
def modem_status_callback (status ):
37
+ if status == ModemStatus .COORDINATOR_STARTED :
38
+ return
37
39
assert (status in [ModemStatus .HARDWARE_RESET , ModemStatus .WATCHDOG_TIMER_RESET ])
38
40
39
41
device .add_modem_status_received_callback (modem_status_callback )
You can’t perform that action at this time.
0 commit comments