its possible to connect raspberry pi pico to blynk using ESP8266 01 AT command because i want to connect my pico to Blynk i already searched in to internet but nothing about this project
I think Blynk.NCP is the way to go. Please read this
https://docs.blynk.io/en/getting-started/supported-boards
1 Like
yes i find this code for Pico ESP8266 from waveshare but also not work, this is the code :
from machine import UART, Pin
import utime,time
SSID='OpenWrt'
password = 'mywifi1213'
ServerIP = '192.168.9.147'
Port = '8080'
uart = UART(0, 115200)
def sendCMD(cmd,ack,timeout=2000):
uart.write(cmd+'\r\n')
t = utime.ticks_ms()
while (utime.ticks_ms() - t) < timeout:
s=uart.read()
if(s != None):
s=s.decode()
print(s)
if(s.find(ack) >= 0):
return True
return False
uart.write('+++')
time.sleep(1)
if(uart.any()>0):uart.read()
sendCMD("AT","OK")
sendCMD("AT+CWMODE=3","OK")
sendCMD("AT+CWJAP=\""+SSID+"\",\""+password+"\"","OK",20000)
sendCMD("AT+CIFSR","OK")
sendCMD("AT+CIPSTART=\"TCP\",\""+ServerIP+"\","+Port,"OK",10000)
sendCMD("AT+CIPMODE=1","OK")
sendCMD("AT+CIPSEND",">")
uart.write('Hello World !!!\r\n')
uart.write('ESP8266 TCP Client\r\n')
while True:
s=uart.read()
if(s != None):
s=s.decode()
print(s)
i need it for MicroPython
@VGFserial Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
Copy and paste these if you can’t find the correct symbol on your keyboard.
Pete.
1 Like
Thank you PeteKnight