Search found 6 matches

by nic
Wed Feb 20, 2019 6:21 pm
Forum: Development of MicroPython
Topic: Pycom Wipy3.0 :Using Bluetooth module under asyncio
Replies: 1
Views: 1833

Pycom Wipy3.0 :Using Bluetooth module under asyncio

Hi, I need to program a data bridge between UART and Bluetooth or Wifi using a wipy 3.0 from pycom. I am using the module "uasyncio" as a realtime operating system. I have already implemented the communication from UART to wifi. But for the Bluetooth connection, i am not sure if it is possibly to in...
by nic
Thu Jan 31, 2019 7:15 pm
Forum: General Discussion and Questions
Topic: HTTPS stream halts before finished
Replies: 6
Views: 5568

Re: HTTPS stream halts before finished

Thank you for the code , Damian. It works well on my wipy board to connect to a HTTPS server. But i have the issue, that i need to integrate this approach to asynchronous system("asynyio"). Is it possible to somehow "await" the reading from the socket for a response from the server? It tried to use ...
by nic
Wed Jan 23, 2019 6:45 pm
Forum: Announcements and News
Topic: Multi-threading support, sponsored by Pycom
Replies: 22
Views: 160285

Re: Multi-threading support, sponsored by Pycom

You need a Python MQTT client which communicates with the broker. It would subscribe to the topic(s) to which your board published, and it would publish to the topic(s) to which your board subscribed. This Python client would talk to the webserver. If your webserver is written in Python and you hav...
by nic
Mon Jan 21, 2019 5:29 pm
Forum: Announcements and News
Topic: Multi-threading support, sponsored by Pycom
Replies: 22
Views: 160285

Re: Nonblocking sockets

I am using "microRESTCli" at the moment, its simple and great, but it seems that it is not asynchronous due to a blocking socket. If I try to just set the socket to non blocking as described in Peter Hinchs example of Uasyncio, it crashes... Using nonblocking sockets is rather more involved than ta...
by nic
Sat Jan 19, 2019 8:05 pm
Forum: Announcements and News
Topic: Multi-threading support, sponsored by Pycom
Replies: 22
Views: 160285

Re: Multi-threading support, sponsored by Pycom

Since you mention Bluetooth and WiPy, I assum that you use a WiPy2 or WiPy3 from Pycom with an ESP32 processor. For that device you have to ask as forum.pycom.io. Besides that, you may use uasyncio in both variants of MicroPython with slight differences. Thanks, I have created a framework which wor...
by nic
Tue Dec 18, 2018 12:19 pm
Forum: Announcements and News
Topic: Multi-threading support, sponsored by Pycom
Replies: 22
Views: 160285

Re: Multi-threading support, sponsored by Pycom

Hi, I am trying to create a Bridge between UART and Bluetooth with the wipy. So, another device, call it Device_A, can connect via UART to the wipy and send Data to a Bluetooth HUB and later also to a Server via Wifi. When Data is send succesfully to the Server, or HUB, a notification should be sent...