-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with ESP12F #1
Comments
i've tried it on the ESP8266 as well, but it doesn't work there, no clue why |
Can you provide a sample app that's not working if it produces any relevant error message? Thanks, |
Hi, bot.send('CHAT_ID', 'Bot started...') But no response on Telegram. I also checked the Wifi connection with
I have seen in your import urequests
def do_connect():
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect('SSID', 'WIFI_PASSWORD')
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
do_connect()
msg = "Testmessage"
token = "XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
user_id = "XXXXXXXXXX"
urequests.get(f'https://api.telegram.org/bot{token}/sendMessage?text={msg}&chat_id={user_id}') And returns following error:
I have tried to find a solution but I have no clue.... Maybe this helps with solving the error. |
Hi, |
OSError: -40 on ESP 8266 (ESP01). |
This might be related to a ESP8266 specific TLS problem other urequests users (like me) encounter micropython/micropython#3198 (comment) |
Thanks for this nice library. I’ve tried it on ESP32 and it works well. But with ESP12F (ESP8266) it’s not working. No idea if where is the problem.
The text was updated successfully, but these errors were encountered: