Skip to content

Commit 8f2d282

Browse files
committed
examples: fix little issues in some examples
Signed-off-by: Diego Escalona <[email protected]>
1 parent 248cc8f commit 8f2d282

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

examples/communication/bluetooth/ReceiveBluetoothFileSample/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
process:
6161

6262
>> START message received, saving data to file...
63-
>> END message received, file 'received_file_20190627120254.txt'
63+
>> END message received, file '<file_name>'
6464

6565
Verify that the received file is created successfully and is the same as the
6666
one you sent with the mobile application.

examples/communication/micropython/ReceiveMicroPythonDataSample/readme.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
* One XBee3 module in API mode and its corresponding carrier board (XBIB
1818
or equivalent).
1919
* 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.
2221

2322

2423
Compatible protocols

examples/communication/relay/ReceiveUserDataRelaySample/ReceiveUserDataRelaySample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def main():
3232

3333
def relay_data_callback(relay_message):
3434
print("Relay data received from %s >> '%s'" %
35-
(relay_message.relay_interface.name,
35+
(relay_message.local_interface.name,
3636
relay_message.data.decode("utf-8")))
3737

3838
device.add_user_data_relay_received_callback(relay_data_callback)

functional_tests/configuration/reset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def main():
3434
device.open()
3535

3636
def modem_status_callback(status):
37+
if status == ModemStatus.COORDINATOR_STARTED:
38+
return
3739
assert (status in [ModemStatus.HARDWARE_RESET, ModemStatus.WATCHDOG_TIMER_RESET])
3840

3941
device.add_modem_status_received_callback(modem_status_callback)

0 commit comments

Comments
 (0)