xbee-micropython icon indicating copy to clipboard operation
xbee-micropython copied to clipboard

uselect support on XBee 3 RF (needed for uasyncio)

Open altaic opened this issue 5 years ago • 7 comments
trafficstars

I was planning to use the uasyncio micropython module to write a robust event handler for #37, but the XBee3 micropython does not include it. So, I copied it over from the official micropython-lib repo as described in this guide.

However, uasyncio is uses the uselect module, which the XBee3 micropython also lacks, and unfortunately this one looks like it needs to be compiled into the micropython runtime.

Is there some simple work-around? Or otherwise can the uselect module be added to the firmware in the future?

altaic avatar May 19 '20 21:05 altaic

Hi @altaic,

As is mentioned in the typehints for the uselect module, we only support uselect on XBee Cellular and XBee 3 Cellular devices with firmware ending in x15 or newer: https://github.com/digidotcom/xbee-micropython/blob/master/typehints/common/uselect.pyi#L188

I'm not sure what the current plans are for implementing uselect on the XBee 3 RF products. I will ask around.

mikewadsten avatar May 20 '20 00:05 mikewadsten

Thanks, @mikewadsten. I had missed that note in the uselect typehints. Having uselect would be really helpful.

altaic avatar May 20 '20 01:05 altaic

@mikewadsten any news?

altaic avatar Jun 05 '20 06:06 altaic

@mikewadsten

altaic avatar Jun 08 '20 08:06 altaic

@altaic No updates at this time. I've submitted a request internally to add support but I can't make any guarantees on when/if it will happen.

mikewadsten avatar Jun 08 '20 19:06 mikewadsten

Thanks; please let me know when there’s news.

altaic avatar Jun 15 '20 00:06 altaic

@mikewadsten It’s been a while, and I’d like to restart the projects that are blocked by this issue. Any updates?

altaic avatar Jul 06 '20 07:07 altaic