Search found 7 matches
- Sat Oct 15, 2022 11:53 pm
- Forum: Programs, Libraries and Tools
- Topic: uPing - Ping library for MicroPython
- Replies: 29
- Views: 120083
Re: uPing - Ping library for MicroPython
This is why this forum is helpful. Many thanks.
- Sat Oct 15, 2022 4:56 am
- Forum: Programs, Libraries and Tools
- Topic: uPing - Ping library for MicroPython
- Replies: 29
- Views: 120083
Re: uPing - Ping library for MicroPython
Is this the correct way to catch the result??? results = [] for result in uping.ping('google.com'): results.append(result) if results[1] != 0: print(f"\n\nUping successfull, returned {results[1]} of {results[0]} packets sent.") # or do_something() else: print(f"\n\nUping UNSUCCESSFULL, cannot reach ...
- Sun Oct 09, 2022 5:46 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 72995
Re: how can non-blocking socket instances be implemented
can I only use select with stream? not DGRAM? what are the difference ?
many thanks.
many thanks.
- Sun Oct 09, 2022 5:44 am
- Forum: ESP8266 boards
- Topic: how can non-blocking socket instances be implemented
- Replies: 14
- Views: 72995
Re: how can non-blocking socket instances be implemented
this is what I assume a library of umqtt isn't it? It's so complicated that I cannot follow ......pythoncoder wrote: ↑Fri Jan 05, 2018 8:24 amThis example illustrates reading from, and writing to, a nonblocking socket.
- Sat Oct 08, 2022 9:46 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico w mqtt_as to HiveMQ Cloud
- Replies: 4
- Views: 43755
Re: Pico w mqtt_as to HiveMQ Cloud
worked out solution. client = MQTTClient(secrets.client_id, secrets.mqtt_server, port=secrets.mqtt_port, user=secrets.mqtt_username, password=secrets.mqtt_psd, ssl=True, ssl_params={ "server_hostname": secrets.mqtt_server}) especially: ssl=True, ssl_params={ "server_hostname": secrets.mqtt_server}
- Sat Oct 08, 2022 9:38 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Great Lesson, don't mess up with main.py
- Replies: 4
- Views: 34510
Great Lesson, don't mess up with main.py
I'm trying to add function in main.py to do something. Accidentally, I put machine.reset() right under if __name__ == "__main__": instant brick...... its repaired, but all works on the pico w were lost. :twisted: :twisted: :twisted: :twisted: great lesson. 1. be very careful on running main.py 2. ba...
- Thu Sep 15, 2022 10:12 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico w mqtt_as to HiveMQ Cloud
- Replies: 4
- Views: 43755
Re: Pico w mqtt_as to HiveMQ Cloud
Im having the same problem so I wish to get some help. Just few questions: How should I get ssl work? Do i have to have any certificate file? Why do I not need when I using other client app.(they only need to "tick" on option "using SSL"). If so, where should I get whatever certificate file and wher...