• crypto.generate_rsa_signature Error

    2
    2
    0 Votes
    2 Posts
    94 Views
    B
    @mthethwansm I'm having the same problem, did you ever get this resolved?
  • Anyone have a reliable MQTT interface using PyCom?

    5
    1
    0 Votes
    5 Posts
    162 Views
    B
    @ahmadelmasri said in Anyone have a reliable MQTT interface using PyCom?: Hi @netskink, Yes this is part of Pybytes, but you can use the MQTT without integrating with pybytes, I mean you can use the library instead of umqtt.py In your case what you should use is only: mqtt_core.py msg_handl.py the try-catch is related to libraries under the "lib" folder and in the frozen zone. so if you are using your own firmware, you can just add the above files and ignore the try-catch or remove them. if you are using pybytes firmware, you can import mqtt.py or _mqtt.py and do subscribe, publish directly. @ahmadelmasri I am trying this but it complains about missing arguments for MQTTClient, such as the mqtt_download_topic and pybytes_protocol. Do you have complete example code using the Pybytes MQTT library?
  • Coming from Arduino to Micropython which ide for a Mac?

    2
    0 Votes
    2 Posts
    26 Views
    robert-hhR
    @andrew-alberty Most people use Thonny as the IDE. https://thonny.org/ P.S.: Using the ESP8266, you may better discuss your topics at the genuine MicroPython forum forum.micropython.org
  • Update to Micropython V1.13

    8
    2 Votes
    8 Posts
    156 Views
    DualMaticD
    @Gijs said in Update to Micropython V1.13: You (@David-Neumair ) are indeed correct in that we need to be more transparent about our future plans. Gijs Hello @Gijs , I second that! Currently we've developed a product with pycom modules inside, and we need to add ULP feature to our end product in order to count pulses (flowmeter feature). We promised to our end users (in 2019-2020) that the modules would have that feature on a few months but at the moment we are waiting ULP feature to be added in pycom firmware. The only tutorial that we found is one from @oligauc https://forum.pycom.io/topic/5337/ultra-low-power-ulp-processor-part-1 but I believe Oligauc no longer works at or with pycom. I've tested this tutorial but I don't know what to do next. It's possible to add ULP feature? or is something pycom isn't going to implement? Kind regards!
  • join() threads?

    2
    0 Votes
    2 Posts
    59 Views
    T
    As my best knowledge NO. :( Threading in pycom threading is very limited. I am also looking for a solution for threading locks. You can check out uasyncio.
  • (Newbie) - filesystem

    3
    0 Votes
    3 Posts
    27 Views
    M
    @robert-hh said in (Newbie) - filesystem: @Mark-Wills did you set ftp to passive mode? No I don't think I did. I'll check that - thank you!
  • OSError: [Errno 90] EMSGSIZE

    5
    0 Votes
    5 Posts
    53 Views
    Z
    @jcaron Yes I will try that. Thanks for the advice!
  • Anyone made a pyboard footprint for Kicad?

    3
    0 Votes
    3 Posts
    40 Views
    A
    Thank you for your response and support.
  • 0 Votes
    6 Posts
    69 Views
    T
    It looks like you are using signed intergers/numbers for the reading from the light sensor. When it reaches the half way value it wraps around and goes negative. If you simply define the data as an unsigned type does it fix the issue.
  • Timer.Alarm nested in another Timer.Alarm possible?

    3
    0 Votes
    3 Posts
    130 Views
    robert-hhR
    @railmonitor You do not need the lamda function for setting the callback. Simply giving the name of the callback function is sufficient. Timer.Alarm(timer_sampler, s = 1, periodic = True) Obviously, the function timer_sampler has to be placed in your script before using if for the alarm callback notification, and the callback has to have a single argument, the alarm object.
  • Convert string to integer

    python
    7
    0 Votes
    7 Posts
    2k Views
    K
    @robert-hh said in Convert string to integer: binascii.hexlify("\x12") On my gpy binascii.hexlify("\x12") gives b'12' Rob. How come I get bytes but you get a hex string?
  • Wipy pin Vin

    2
    0 Votes
    2 Posts
    16 Views
    robert-hhR
    @ciccio vin is the pin to supply the WiPy. When the module is attached e.g. to the expansion board, you can of course take power at that pin for other devices. But the WiPy is not the source of that power.
  • queue, double put blocks code

    2
    0 Votes
    2 Posts
    103 Views
    S
    @Doroana, not sure if you have figured this out yet but when you create your instance of the queue, you can give it a parameter of the size of the queue. a = queue.Queue(10), this will create a queue with max size 10. The default value is 1.
  • Scheduling Tasks

    2
    0 Votes
    2 Posts
    66 Views
    G
    You can create a timer chrono / alarm instance using the following API: https://docs.pycom.io/firmwareapi/pycom/machine/timer/
  • Camera image over MQTT

    Moved low power
    27
    0 Votes
    27 Posts
    18k Views
    S
    @jcaron Dear Jcaron: Tnx for your reply. Sorry, if I couldn't make it clear. But, I now I have made it to sending a few hundreds of bytes now (upto 1KB). As soon as I am done with the final project, I will share my updates.
  • Communication with other lora device doesn't work

    bugs lora lopy4 feather m0
    9
    0 Votes
    9 Posts
    667 Views
    B
    @melkoutch hope you still read this as this thread is quite old. I stumbled upon it having the exact same problem (LoPy4 <-> Feather M0 in raw LoRa). Adjusting the spreading factor doesn't seem to solve it for me. Would you be able to post the code fragment that you used to successfully connect the two? Thanks a lot!
  • How to save Strings from UART the right way

    uart data strings
    3
    0 Votes
    3 Posts
    79 Views
    S
    @robert-hh Thank you so much for that input! I'm really new to Python in regards of MCU's, so there is still alot to learn for me. Now I'm less afraid, that something could go wrong. :)
  • Sending json data through MQTT

    1
    0 Votes
    1 Posts
    71 Views
    No one has replied
  • NB-IoT: How to send data in Non-IP mode

    lte nb iot non-ip
    2
    1
    1 Votes
    2 Posts
    667 Views
    B
    Hi @stsiafak Just curious, were you able to send the data using non-IP mode? Also, how did you get the packet into wireshark?
  • Importing Library

    5
    0 Votes
    5 Posts
    209 Views
    rcolisteteR
    Took more time than planned. Voilá, more community Pycom MicroPython firmwares, including : 24 firmwares without ulab, in combinations of 6 xxPy boards, Pybytes or not, single/double precision; 21 firmwares with ulab, in combinations of 6 xxPy boards, Pybytes or not, single/double precision. 3 LoPy/SiPy/WiPy firmwares with ulab and Pybytes combinations are not possible due to the small firmware partition size of these boards. These firmwares with ulab have 'MICROPY_PY_REVERSE_SPECIAL_METHODS' enabled to allow '1 + np.arange(10)', for example. Announce with more details in 'Pycom firmwares with single/double precision and ulab module' topic.

Pycom on Twitter