# \#micropython

**URL:** https://forums.digi.com/tag/micropython/3446.md?match_all_tags=true&tags%5B%5D=micropython

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [Micropython math library?](https://forums.digi.com/t/micropython-math-library/20653)

<div class="topic-metadata">

**Author:** [@amirna2](https://forums.digi.com/u/amirna2)\
**Replies:** 5\
**Last updated:** [April 10, 2026, 2:44pm UTC](https://forums.digi.com/t/micropython-math-library/20653 "2026-04-10T14:44:34Z")

</div>

Hello, Could anyone please whether math library is part of the Xbee3 micropython or not? I am using version 1.10 and it seems like it’s missing \>\>\> help(‘modules’) main io time uo…

---

## [Xbee 3 micropython](https://forums.digi.com/t/xbee-3-micropython/38324)

<div class="topic-metadata">

**Author:** [@ozgun](https://forums.digi.com/u/ozgun)\
**Replies:** 10\
**Last updated:** [April 10, 2026, 11:55am UTC](https://forums.digi.com/t/xbee-3-micropython/38324 "2026-04-10T11:55:57Z")

</div>

I am unable to use the python module math on the xbee via the Xbee plugin of pycharm. I have created a new xbee micropython project using the Digi Xbee plugin of pycharm. Everything works fine. Then I wanted to use th…

---

## [MQTT Broker Connection Issue](https://forums.digi.com/t/mqtt-broker-connection-issue/37939)

<div class="topic-metadata">

**Author:** [@yosh](https://forums.digi.com/u/yosh)\
**Replies:** 12\
**Last updated:** [November 20, 2025, 12:49pm UTC](https://forums.digi.com/t/mqtt-broker-connection-issue/37939 "2025-11-20T12:49:09Z")

</div>

We have been experiencing issues in connecting to an MQTT broker using SSL/TLS authentication. We are using a Digi XBee 3 Cellular LTE-M/NB-IoT modem in trying to establish this connection. I have been using a modified …

---

## [Wake up xbee3 with commissioning button and go into micropython code?](https://forums.digi.com/t/wake-up-xbee3-with-commissioning-button-and-go-into-micropython-code/37944)

<div class="topic-metadata">

**Author:** [@corso66](https://forums.digi.com/u/corso66)\
**Replies:** 9\
**Last updated:** [November 3, 2025, 5:51pm UTC](https://forums.digi.com/t/wake-up-xbee3-with-commissioning-button-and-go-into-micropython-code/37944 "2025-11-03T17:51:27Z")

</div>

Hi, I would like to know if it is possible to wake up a sleeping xbee3 (SM=6) with the Commissioning button and, like the RTC wake-up, resume the operation of the micropython code to do other tasks? Thank you Syl

---

## [Digi XBee 3, DigiMesh - problem with sending messages by xbee.transmit () ENOTCONN](https://forums.digi.com/t/digi-xbee-3-digimesh-problem-with-sending-messages-by-xbee-transmit-enotconn/29642)

<div class="topic-metadata">

**Author:** [@Konrad](https://forums.digi.com/u/Konrad)\
**Replies:** 11\
**Last updated:** [April 20, 2025, 8:23am UTC](https://forums.digi.com/t/digi-xbee-3-digimesh-problem-with-sending-messages-by-xbee-transmit-enotconn/29642 "2025-04-20T08:23:30Z")

</div>

Hi everyone, I have a problem with sending messages from Digi XBee 3 modules, DigiMesh protocol, firmware version 3012. The program sending messages in BROADCAST or UNICAST mode: retries = 200 address = xbee.ADD…

---

## [XBEE 3 with USB to Power Bank](https://forums.digi.com/t/xbee-3-with-usb-to-power-bank/32734)

<div class="topic-metadata">

**Author:** [@nadhiraswn](https://forums.digi.com/u/nadhiraswn)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 2:21am UTC](https://forums.digi.com/t/xbee-3-with-usb-to-power-bank/32734 "2024-10-10T02:21:02Z")

</div>

Hello. I wonder if it is possible to use the XBEE 3 with USB board directlly connected to power bank because the XBEE 3 is already programmed using Micropython. But when we try to connect to the power bank, it was just t…

---

## [Os.bundle(myapp.mpy) leads to soft reboot](https://forums.digi.com/t/os-bundle-myapp-mpy-leads-to-soft-reboot/32140)

<div class="topic-metadata">

**Author:** [@hlyu-coencorp.com](https://forums.digi.com/u/hlyu-coencorp.com)\
**Replies:** 2\
**Last updated:** [August 19, 2024, 2:29pm UTC](https://forums.digi.com/t/os-bundle-myapp-mpy-leads-to-soft-reboot/32140 "2024-08-19T14:29:00Z")

</div>

Hi, I plan to embed 17 pieces of mpy’s to flash before running main app. this operation shall be executed only once, So in boot.py I wrote following line: os.bundle(‘myapp1.mpy’, ‘myapp2.mpy’,…) os.remove(‘boot.mpy’) …

---

## [Cannot connect to AWS IoT](https://forums.digi.com/t/cannot-connect-to-aws-iot/20048)

<div class="topic-metadata">

**Author:** [@tylerkoldenjtp](https://forums.digi.com/u/tylerkoldenjtp)\
**Replies:** 13\
**Last updated:** [July 22, 2024, 12:51pm UTC](https://forums.digi.com/t/cannot-connect-to-aws-iot/20048 "2024-07-22T12:51:49Z")

</div>

I have followed the instructions for connecting a XBC LTE Cat 1 Verizon to AWS IoT as described here: https://github.com/digidotcom/xbee-micropython/tree/master/samples/cellular/aws The board I’m using is the Digi XBee …

---

## [XBee3 "OSError: \[Errno 7107\] ENOTCONN" while connected](https://forums.digi.com/t/xbee3-oserror-errno-7107-enotconn-while-connected/26976)

<div class="topic-metadata">

**Author:** [@esimioni](https://forums.digi.com/u/esimioni)\
**Replies:** 8\
**Last updated:** [April 10, 2024, 2:32pm UTC](https://forums.digi.com/t/xbee3-oserror-errno-7107-enotconn-while-connected/26976 "2024-04-10T14:32:06Z")

</div>

The 7107 ENOTCONN occurs between 1 minute and 1 day after powering on and the only way to recover is by power cycling the module, which is not a solution for my needs. Odd facts Upon starting there is a loop checking…

---

## [Xbee3 Cellular - Micropython cellular.shutdown vs. cellular.active (airplane mode)](https://forums.digi.com/t/xbee3-cellular-micropython-cellular-shutdown-vs-cellular-active-airplane-mode/28624)

<div class="topic-metadata">

**Author:** [@Larry\_Sellers](https://forums.digi.com/u/Larry_Sellers)\
**Replies:** 4\
**Last updated:** [April 1, 2024, 2:52pm UTC](https://forums.digi.com/t/xbee3-cellular-micropython-cellular-shutdown-vs-cellular-active-airplane-mode/28624 "2024-04-01T14:52:36Z")

</div>

Hello, I am updating and debugging code and I see that a new method was added to the Micropython port for shutting down the cellular modem. Specifically it is cellular.shutdown(reset=T/F) method. What the method does …

---

## [Xbee3 I2C ENODEV error](https://forums.digi.com/t/xbee3-i2c-enodev-error/22632)

<div class="topic-metadata">

**Author:** [@lbdcdrc](https://forums.digi.com/u/lbdcdrc)\
**Replies:** 13\
**Last updated:** [April 1, 2024, 2:48pm UTC](https://forums.digi.com/t/xbee3-i2c-enodev-error/22632 "2024-04-01T14:48:47Z")

</div>

Dear all, I’ve been playing with my new XBees for few days, and I’m enjoying them a lot :slight\_smile: I’m now trying to deal with the I2C bus and with micropython. I’m then facing some difficulties. My configuration…

---

## [Using the xbee.receive\_callback() function in a class](https://forums.digi.com/t/using-the-xbee-receive-callback-function-in-a-class/30093)

<div class="topic-metadata">

**Author:** [@CoolerMann](https://forums.digi.com/u/CoolerMann)\
**Replies:** 2\
**Last updated:** [March 10, 2024, 4:52pm UTC](https://forums.digi.com/t/using-the-xbee-receive-callback-function-in-a-class/30093 "2024-03-10T16:52:01Z")

</div>

Hello, Im changing a exisiting code and switching to classes in python. However the function xbee.receive\_callback(RxCallback) def RxCallback(rdata): print(“+++++++ Entering Callback +++++++”) do\_receive(rdata) pr…

---

## [XBee3 Global - Not Waking from Deep Sleep](https://forums.digi.com/t/xbee3-global-not-waking-from-deep-sleep/30034)

<div class="topic-metadata">

**Author:** [@Larry\_Sellers](https://forums.digi.com/u/Larry_Sellers)\
**Replies:** 1\
**Last updated:** [March 6, 2024, 2:04pm UTC](https://forums.digi.com/t/xbee3-global-not-waking-from-deep-sleep/30034 "2024-03-06T14:04:22Z")

</div>

Hello, I have been continuing my testing and even a few deployments of the new XBee 3 Global, GM2 and GM1, variants. All is going well, however I am starting to see a problem pop up. Fairly randomly, the devices go in…

---

## [Sleeping devices can 'freeze' after wkeup randomly](https://forums.digi.com/t/sleeping-devices-can-freeze-after-wkeup-randomly/30014)

<div class="topic-metadata">

**Author:** [@corso66](https://forums.digi.com/u/corso66)\
**Replies:** 3\
**Last updated:** [March 4, 2024, 4:10pm UTC](https://forums.digi.com/t/sleeping-devices-can-freeze-after-wkeup-randomly/30014 "2024-03-04T16:10:50Z")

</div>

Hi everyone ! I’m working with 3 XBee3 eval board and X2E gateway. X2E as coordinator 1 xbee3 as router 2 xbee3 as end node sleeping devices The 3 XBees running with micropython, and sleeping duration is 1 minutes fo…

---

## [Issues trying to paste in Micropython terminal on XCTU using Xbee3](https://forums.digi.com/t/issues-trying-to-paste-in-micropython-terminal-on-xctu-using-xbee3/29666)

<div class="topic-metadata">

**Author:** [@Werby96](https://forums.digi.com/u/Werby96)\
**Replies:** 4\
**Last updated:** [February 9, 2024, 7:42pm UTC](https://forums.digi.com/t/issues-trying-to-paste-in-micropython-terminal-on-xctu-using-xbee3/29666 "2024-02-09T19:42:55Z")

</div>

Hello, I’m having issues pasting in the Micropython terminal. When I do, I get random characters in the terminal. Baud rate matches the board at 9600. Below is the simple code I’m trying to paste and the attachment shows…

---

## [Best solution to send and receive data from UART to BLE on Xbee 3 (802.15.4)](https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664)

<div class="topic-metadata">

**Author:** [@alme90](https://forums.digi.com/u/alme90)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 11:48am UTC](https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664 "2024-02-08T11:48:32Z")

</div>

Hi, with a Digi Xbee 3 (802.15.4) , what is the best solution to send data from UART to BLE and vice versa? Thanks :wink:

---

## [XBee3 build micropython project with pycharm and Digi Xbee plugin](https://forums.digi.com/t/xbee3-build-micropython-project-with-pycharm-and-digi-xbee-plugin/29637)

<div class="topic-metadata">

**Author:** [@andreastaran](https://forums.digi.com/u/andreastaran)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 12:46pm UTC](https://forums.digi.com/t/xbee3-build-micropython-project-with-pycharm-and-digi-xbee-plugin/29637 "2024-02-06T12:46:11Z")

</div>

Hi! I have upgraded both the Xbee3 firmware to the latest (1013) and the Pycharm Community Edition development IDE (2023.2) to the latest that is supported by the newest Digi Xbee plugin (2.1.7). Setting up a new Digi …

---

## [XBee3 Global Cat-M/NB-IoT - ENOTCONN errors](https://forums.digi.com/t/xbee3-global-cat-m-nb-iot-enotconn-errors/28626)

<div class="topic-metadata">

**Author:** [@Larry\_Sellers](https://forums.digi.com/u/Larry_Sellers)\
**Replies:** 3\
**Last updated:** [January 30, 2024, 7:42pm UTC](https://forums.digi.com/t/xbee3-global-cat-m-nb-iot-enotconn-errors/28626 "2024-01-30T19:42:00Z")

</div>

Hello, Well I had about 2 pages typed and basically deleted most of it for being too long. So hopefully this is succinct. Module: XBee3 Global - Low Power variant (GM1) North America Mode: Micropython REPL Cell Netw…

---

## [Hardware Interrupt Micropython Xbee3](https://forums.digi.com/t/hardware-interrupt-micropython-xbee3/29259)

<div class="topic-metadata">

**Author:** [@pedroc](https://forums.digi.com/u/pedroc)\
**Replies:** 9\
**Last updated:** [January 26, 2024, 2:08am UTC](https://forums.digi.com/t/hardware-interrupt-micropython-xbee3/29259 "2024-01-26T02:08:28Z")

</div>

Hi all, I have a program that requires an external interrupt to trigger an immediate action. I have used irq interrupts in the past with python, but it looks like this is not supported in micropython on Xbee. Are there …

---

## [Xbee - in MicroPython communication by BLE (bluetooth) error ENOBUFS](https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952)

<div class="topic-metadata">

**Author:** [@Armiks](https://forums.digi.com/u/Armiks)\
**Replies:** 1\
**Last updated:** [January 8, 2024, 2:42pm UTC](https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952 "2024-01-08T14:42:17Z")

</div>

Hi, I have a problem with the stability of sending data from Xbee via bluetooth (to android application). In MicroPython in the main loop I have a simple code sending 40 characters (the program sends 5600 characters per…

---

## [Micropython data compression](https://forums.digi.com/t/micropython-data-compression/20552)

<div class="topic-metadata">

**Author:** [@tylerkoldenjtp](https://forums.digi.com/u/tylerkoldenjtp)\
**Replies:** 2\
**Last updated:** [December 12, 2023, 2:11pm UTC](https://forums.digi.com/t/micropython-data-compression/20552 "2023-12-12T14:11:35Z")

</div>

I have a Digi XBee Cellular LTE Cat 1 and use MicroPython on the device. The MicroPython code reads data from the serial port and transmits it to an MQTT topic. It works well, however, I have not found any compression …

---

## [Xbee3 micropython GPIO interrupt](https://forums.digi.com/t/xbee3-micropython-gpio-interrupt/21180)

<div class="topic-metadata">

**Author:** [@viteka32](https://forums.digi.com/u/viteka32)\
**Replies:** 5\
**Last updated:** [December 1, 2023, 10:18pm UTC](https://forums.digi.com/t/xbee3-micropython-gpio-interrupt/21180 "2023-12-01T22:18:18Z")

</div>

Hi, Will have Xbee3 in micropython implemented interrupt on GPIO? I need continuously calculate the raising edge on GPIO. Polling is unuseable.

---

## [Xbee MicroPython problem with xbee.receive() in serial communication (API 1)](https://forums.digi.com/t/xbee-micropython-problem-with-xbee-receive-in-serial-communication-api-1/28406)

<div class="topic-metadata">

**Author:** [@Armiks](https://forums.digi.com/u/Armiks)\
**Replies:** 2\
**Last updated:** [November 16, 2023, 7:43am UTC](https://forums.digi.com/t/xbee-micropython-problem-with-xbee-receive-in-serial-communication-api-1/28406 "2023-11-16T07:43:14Z")

</div>

Hi everyone, I have a request for help. The following code executes correctly in API mode “MicroPython REPL \[4\]”. Since I want to ensure that the module communicates with the microcontroller I change the API to Mode Wit…

---

## [Failed Xbee 3 LTE-M/NB-IoT after running for a few months.](https://forums.digi.com/t/failed-xbee-3-lte-m-nb-iot-after-running-for-a-few-months/22581)

<div class="topic-metadata">

**Author:** [@samson49](https://forums.digi.com/u/samson49)\
**Replies:** 5\
**Last updated:** [October 18, 2023, 5:18pm UTC](https://forums.digi.com/t/failed-xbee-3-lte-m-nb-iot-after-running-for-a-few-months/22581 "2023-10-18T17:18:31Z")

</div>

Hello all, anyone have issues with their Xbee 3 LTE-M/NB-IoT modems failing in the field? I have a few running L0.0.00.00.05.11,A.02.16 and Digi firmware 11417 that have stopped transmitting in the field. Upon checking…

---

## [How to disable the initial print statement of Digi Xbee in micropython mode?](https://forums.digi.com/t/how-to-disable-the-initial-print-statement-of-digi-xbee-in-micropython-mode/23854)

<div class="topic-metadata">

**Author:** [@Swathi](https://forums.digi.com/u/Swathi)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 12:18pm UTC](https://forums.digi.com/t/how-to-disable-the-initial-print-statement-of-digi-xbee-in-micropython-mode/23854 "2023-02-14T12:18:00Z")

</div>

How can disable the initial print statement by Xbee(3.0)module in micro python state that appears when after power is given? (print statement:“Running bytecode”)

---

## [PyCharm Plugin doesn't work with PyCharm 2022.2.2](https://forums.digi.com/t/pycharm-plugin-doesnt-work-with-pycharm-2022-2-2/23233)

<div class="topic-metadata">

**Author:** [@esimioni](https://forums.digi.com/u/esimioni)\
**Replies:** 8\
**Last updated:** [December 7, 2022, 1:48pm UTC](https://forums.digi.com/t/pycharm-plugin-doesnt-work-with-pycharm-2022-2-2/23233 "2022-12-07T13:48:49Z")

</div>

After upgrading PyCharm from 2022.2.1 to 2022.2.2 I can’t open any Digi project. I have downgraded PyCharm and it worked again, so it is something that changed on 2022.2.2. The error message is: Access is allowed from…

---

## ["from typing import" doesn't work](https://forums.digi.com/t/from-typing-import-doesnt-work/23259)

<div class="topic-metadata">

**Author:** [@esimioni](https://forums.digi.com/u/esimioni)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 4:37pm UTC](https://forums.digi.com/t/from-typing-import-doesnt-work/23259 "2022-10-17T16:37:42Z")

</div>

I’ve seen sample code from Digi using typing. Running the build on PyCharms works, but when running on the XBee it raises the following error: ImportError: no module named ‘typing’ Product family: XB3-24 Function set…

---

## [Unresolved reference 'micropython' in PyCharm](https://forums.digi.com/t/unresolved-reference-micropython-in-pycharm/23248)

<div class="topic-metadata">

**Author:** [@esimioni](https://forums.digi.com/u/esimioni)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 1:18pm UTC](https://forums.digi.com/t/unresolved-reference-micropython-in-pycharm/23248 "2022-10-04T13:18:18Z")

</div>

The following import is yielding 2 errors in the file editor: from micropython import const Unresolved reference ‘micropython’ Unresolved reference ‘const’ The “micropython” one I can set PyCharm to ignore, but the “…

---

## [micropython machine  uart.write() limit](https://forums.digi.com/t/micropython-machine-uart-write-limit/23245)

<div class="topic-metadata">

**Author:** [@ajsPillar](https://forums.digi.com/u/ajsPillar)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 8:19am UTC](https://forums.digi.com/t/micropython-machine-uart-write-limit/23245 "2022-09-29T08:19:18Z")

</div>

I am using a Xbee3 LTE-m Module with micropython scripts. I am running into a strange issue where I can only send 255 bytes of a 348 byte string through the secondary UART. I have verified with a logic analyzer that on…

---

## [Remotely update python file when Xbee3 in micropython mode](https://forums.digi.com/t/remotely-update-python-file-when-xbee3-in-micropython-mode/22978)

<div class="topic-metadata">

**Author:** [@Yue](https://forums.digi.com/u/Yue)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 1:55pm UTC](https://forums.digi.com/t/remotely-update-python-file-when-xbee3-in-micropython-mode/22978 "2022-09-16T13:55:58Z")

</div>

Hi, I have Xbee3 modules configured in MicroPython REPL mode. In digi xbee-python library, there is remote file system update support. But when I tried the example, I got “Stat filesystem error: Response not received in…

[Next page](https://forums.digi.com/tag/micropython/3446.md?match_all_tags=true&page=1&tags%5B%5D=micropython)
