• Face/Object detection using FiPy board?

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

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • LoPy to LoPY BLE example problems

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

    1
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • SHT3x I2C always replying nonsense (b'\x00\x00\x81\xff\xff\xff')

    2
    0 Votes
    2 Posts
    41 Views
    P
    I have the same problem, could you explain me how did you fixed it? thank you
  • download boot.py and main.py by ftp

    ftp python
    12
    0 Votes
    12 Posts
    3k Views
    A
    download boot.py and main.py by ftp
  • 1 Votes
    2 Posts
    459 Views
    G
    You'll might have issue attaching to the network again, in which case you'll have to deinit and try re-attaching. Probably won't be an issue unless you save some state to nvram. I don't understand the other part fully: Are you using all three commands to deinit the LTE modem? I think you only need lte.deinit() or the other two (although I'm looking for a definite answer to this as we speak). What do you estimate to power consumption difference to be? What power consumption/battery life do you need to achieve?
  • littleFS disadvantages?

    9
    0 Votes
    9 Posts
    197 Views
    techykermitT
    @robert-hh Sounds great, thanks for the help!
  • AWS IoT Core work

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

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Pybytes Google integration - removing additional characters?

    2
    0 Votes
    2 Posts
    17 Views
    R
    If anyone else has the same issue, my current workaround is a setting up a Cloud Function, that removes the extra chars, and republishes to another topic, using the following code: import base64 import json from json import JSONDecodeError # import os from google.cloud import pubsub_v1 def main(event, context): # Get decoded message decoded_message = decode_message(event, context) # Instantiates a Pub/Sub client publisher = pubsub_v1.PublisherClient() # PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') #Returns None! PROJECT_ID = "YOUR-PROJECT-ID-HERE" #TODO supply as function parameter, or get the currently running project topic_name = "pybytes" #This is the topic the clean message would be published to topic_path = publisher.topic_path(PROJECT_ID, topic_name) # Remove first two chars # TODO: Make more robust (clean all until first '}' and all after last '}' - probably use regex?) message = decoded_message[3:][:-1] # Convert string to dict and back - otherwise problems with recognizing as json object occur try: msg_dict = json.loads(message) except JSONDecodeError as e: print("using [2:]") msg_dict = json.loads(decoded_message[2:][:-1]) except JSONDecodeError as e: print("using [4:]") msg_dict = json.loads(decoded_message[4:][:-1]) message = json.dumps(msg_dict) # Encode the message as bytes message_bytes = message.encode('utf-8') # Publish the clean message try: publish_future = publisher.publish(topic_path, data=message_bytes) publish_future.result() # Verify the publish succeeded return 'Message published.' except Exception as e: print(e) return (e, 500) def decode_message(event, context): """Triggered from a message on a Cloud Pub/Sub topic. Args: event (dict): Event payload. context (google.cloud.functions.Context): Metadata for the event. """ pubsub_message = base64.b64decode(event['data']).decode('utf-8') # print(pubsub_message) return pubsub_message
  • Pycom modbus

    2
    0 Votes
    2 Posts
    44 Views
    A
    I seem to be unable to edit my message, I wanted to add another question to it: is there perhaps another library that could work well for Lopy that is not the official one? Still not gotten it to work.
  • Raspberry Pi pico can not download other programs

    2
    0 Votes
    2 Posts
    26 Views
    robert-hhR
    @Andy-Smith This is the Pycom forum, which deals with Pycom Micropython products. If you question is about RasPi Pico Micropython, you'd better ask at https://forum.micropython.org/
  • main.py never start

    2
    0 Votes
    2 Posts
    20 Views
    E
    @Mateusz-F I'm using Atom and Pymakr and usually it tells you in the REPL console if there's anything wrong with your code. Is that not the case for you? [image: 1635790757935-a9930cef-29b7-48fd-b3d6-285193b1244d-image.png]
  • MQTT Exception when connecting to a local broker

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

    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • LoPy4 ESP32 WiFi standard

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • What are the voltage limits on the ADC?

    3
    0 Votes
    3 Posts
    37 Views
    R
    @robert-hh Thanks for the reply. I am heading down that path.
  • PyGate PoE issues - any final fix?

    1
    0 Votes
    1 Posts
    38 Views
    No one has replied
  • Firmware Tool "Could not connect to the update server!"

    1
    1 Votes
    1 Posts
    24 Views
    No one has replied

Pycom on Twitter