Search found 10 matches

by Nico
Tue Nov 17, 2015 9:59 pm
Forum: General Discussion and Questions
Topic: Globally import uasyncio
Replies: 1
Views: 3094

Globally import uasyncio

Hi, I'm trying to add micropython support to HBMQTT , an MQTT client/broker I've been developing. One task is to correctly import micropython renamed modules like uasyncio. Therefore, I've added this kind of statements to my python code: try: import uasyncio as asyncio except: import asyncio This wo...
by Nico
Mon Nov 16, 2015 9:53 pm
Forum: General Discussion and Questions
Topic: import ssl fails
Replies: 8
Views: 8222

Re: import ssl fails

Running "make axtls gives": $ make axtls Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. cd ../lib/axtls; cp config/upyconfig config/.config cd ../lib/axtls; make oldconfig -B /Applications/Xcode.app/Contents/Developer/usr/bin/make -C config/scripts/config conf cp ...
by Nico
Mon Nov 16, 2015 8:49 pm
Forum: General Discussion and Questions
Topic: import ssl fails
Replies: 8
Views: 8222

Re: import ssl fails

Sorry, I missed that documentation. Now I've followed the instruction. I've done: $ git submodule update --init plus enabled SSL (MICROPY_PY_USSL=1) When running $ make deplibs I get: cd ../lib/axtls; make all CC="clang" LD="ld" /Applications/Xcode.app/Contents/Developer/usr/bin/make -C crypto In fi...
by Nico
Sun Nov 15, 2015 8:05 pm
Forum: General Discussion and Questions
Topic: import ssl fails
Replies: 8
Views: 8222

import ssl fails

Hi, I'm using unix micropython, with head revision from master and I'm failing with import ssl : $ ./unix/micropython MicroPython v1.5-138-g3862ef9 on 2015-11-14; darwin version Use Ctrl-D to exit, Ctrl-E for paste mode >>> import ssl Traceback (most recent call last): File "<stdin>", line 1, in <mo...
by Nico
Sun Nov 15, 2015 10:47 am
Forum: Development of MicroPython
Topic: micropython on OSX
Replies: 2
Views: 3915

Re: micropython on OSX

Hi,

would kqueue be useful for micropython boards or would it only be useful for OSX support ?
by Nico
Sat Nov 14, 2015 9:50 pm
Forum: Development of MicroPython
Topic: micropython on OSX
Replies: 2
Views: 3915

micropython on OSX

Hi, I managed to compile and run unix micropython version on OSX for simple usage. Now then trying to use more advanced feature like asyncio I'm failing because micropython uses epoll select while OSX uses kqueue. I'm not an expert with this technolohy but that's what I understood. Therefore I guess...
by Nico
Sat Nov 14, 2015 6:16 pm
Forum: Development of MicroPython
Topic: getenv() error with UNIX micropython
Replies: 2
Views: 3620

Re: getenv() error with UNIX micropython

Thanks for your reply. I could have created a pull request but I missed the change in unix/modos.c, which I guess was causing the seg fault.
by Nico
Sat Nov 14, 2015 3:06 pm
Forum: Development of MicroPython
Topic: getenv() error with UNIX micropython
Replies: 2
Views: 3620

getenv() error with UNIX micropython

Hi, I would like to make HBMQTT work with micropython. I've cloned micropython repo (head revision) and built UNIX successfully. Before being able to run, I need to install some dependencies like logging. Therefore, I run the following command : ./micropython -v -m upip install logging Unfortunatell...
by Nico
Thu Oct 29, 2015 8:51 pm
Forum: Programs, Libraries and Tools
Topic: paho-mqtt for MicroPython
Replies: 17
Views: 27335

Re: paho-mqtt for MicroPython

I'm new to micropython. I need some time for testing and investigating in uasyncio, but i'll try.
by Nico
Wed Oct 28, 2015 7:05 am
Forum: Programs, Libraries and Tools
Topic: paho-mqtt for MicroPython
Replies: 17
Views: 27335

Re: paho-mqtt for MicroPython

Hi,
I'm the author of hbmqtt a MQTT client / broker implementation (https://github.com/beerfactory/hbmqtt) running on Python 3.5.
HBMQTT doesn't use threading but asyncio. I would be happy to make it run on uPy but I don't know if asyncio is supported on uPy.