Search found 7 matches

by fishjoe
Sat Oct 15, 2022 11:53 pm
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 29
Views: 118524

Re: uPing - Ping library for MicroPython

This is why this forum is helpful. Many thanks.
by fishjoe
Sat Oct 15, 2022 4:56 am
Forum: Programs, Libraries and Tools
Topic: uPing - Ping library for MicroPython
Replies: 29
Views: 118524

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 ...
by fishjoe
Sun Oct 09, 2022 5:46 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 71842

Re: how can non-blocking socket instances be implemented

can I only use select with stream? not DGRAM? what are the difference ?

many thanks.
by fishjoe
Sun Oct 09, 2022 5:44 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 71842

Re: how can non-blocking socket instances be implemented

pythoncoder wrote:
Fri Jan 05, 2018 8:24 am
This example illustrates reading from, and writing to, a nonblocking socket.
this is what I assume a library of umqtt isn't it? It's so complicated that I cannot follow ...... :shock: :shock:
by fishjoe
Sat Oct 08, 2022 9:46 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico w mqtt_as to HiveMQ Cloud
Replies: 4
Views: 43108

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}
by fishjoe
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: 33969

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...
by fishjoe
Thu Sep 15, 2022 10:12 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico w mqtt_as to HiveMQ Cloud
Replies: 4
Views: 43108

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...