• This topic is deleted!

    1
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • maximum recursion depth

    1
    1 Votes
    1 Posts
    36 Views
    No one has replied
  • micropython.schedule()

    4
    0 Votes
    4 Posts
    85 Views
    robert-hhR
    @louis-stromeyer A pin callback is a scheduled function too. Whenever an interrupt happens, the information about the handler is pushed to a queue and the ISR itself terminated. The queue is processed by a separate MicroPython thread. There exists cases where a c-code pin interrupt handler is immediately called. But that happens only internally by the LoRa and Sigfox firmware and is not exposed to user Python code.
  • MQTT callback for multiple feeds using just one call

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • Delete contents of a .txt file in Micropython

    1
    0 Votes
    1 Posts
    46 Views
    No one has replied
  • Lopy4 interrupt priority level

    1
    0 Votes
    1 Posts
    35 Views
    No one has replied
  • upython and heap library

    1
    0 Votes
    1 Posts
    45 Views
    No one has replied
  • btree lib support

    micorpython modules
    19
    0 Votes
    19 Posts
    2k Views
    robert-hhR
    @Fakstory I made a tarball and placed it here: https://github.com/robert-hh/Shared-Stuff.git You should be able to load it with the Pycom update tools. I have no GPy here, so I cannot test, whether the firmware works.
  • MQTT and Google IOT Core

    2
    0 Votes
    2 Posts
    65 Views
    N
    I finally got this sample to work. I created a pull request for the README associated with this code. Here is the pull request. https://github.com/pycom/pycom-libraries/pull/119
  • gpy bluetooth not advertising after client disconnect

    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • Bluetooth and serial connection at the same time

    bluetooth lopy serial micropython
    4
    0 Votes
    4 Posts
    1k Views
    C
    Hi...I haven't found anything short of implementing a significant chunk of the bluetooth protocol stack (which I have no desire to take on).All of the bluetooth modules I've been able to find are similar to the one used by the arduino BT in that they only support one serial connection. smt assembly service
  • 0 Votes
    10 Posts
    5k Views
    G
    Python makes a clear distinction between bytes and strings . Bytes objects contain raw data — a sequence of octets — whereas strings are Unicode sequences . Conversion between these two types is explicit: you encode a string to get bytes, specifying an encoding (which defaults to UTF-8); and you decode bytes to get a string. Clients of these functions should be aware that such conversions may fail, and should consider how failures are handled. We can convert bytes to string using bytes class decode() instance method, So you need to decode the bytes object to produce a string. In Python 3 , the default encoding is "utf-8" , so you can use directly: b"python byte to string".decode("utf-8")
  • Fipy, Creating a new file on SD card, but it is protected (no access)!

    6
    0 Votes
    6 Posts
    277 Views
    robert-hhR
    @railmonitor yes. uos.remove() is the method for deleting files.
  • sending hex via uart

    micropython uart hex
    10
    0 Votes
    10 Posts
    390 Views
    T
    @robert-hh I messed up the indexing. Thanks. :)
  • Authenticate a message

    7
    0 Votes
    7 Posts
    285 Views
    M
    @g0hww and @jcaron thank you so much for sharing.
  • UART without pullup - machine.mem32 access

    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • Sending and Receiving Data from local web server

    1
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • urequests and timeout?

    3
    0 Votes
    3 Posts
    398 Views
    K
    Andreas is right Martin. I had to resort to a wdt to get around urequest hangs. I tried adding a timeout to urequests, putting urequests in a different thread & setting interrupt timers, nothing worked. Try import urequests; response=urequests.post(your_url, data=payload)
  • mqtt with ssl

    4
    1 Votes
    4 Posts
    306 Views
    A
    @Asb I put the full path to the certfile in my config ('certfile':'/flash/cert/ca/pem'}, maybe this helps. André

Pycom on Twitter