rpi-pico-micropython-esp8266-lib icon indicating copy to clipboard operation
rpi-pico-micropython-esp8266-lib copied to clipboard

Syntax error with ESP8266.doHttpPost()

Open jckantor opened this issue 4 years ago • 2 comments

The user_agent argument has a default value when subsequent arguments have no defaults. This gives a syntax error ...

Traceback (most recent call last): File "", line 2, in File "esp8266.py", line 462, in ESP8266 SyntaxError: non-default argument follows default argument

jckantor avatar Oct 22 '21 01:10 jckantor

I am having this issue as well. any fix?

Alalanderson avatar Nov 06 '21 22:11 Alalanderson

I am having this issue as well. any fix?

def doHttpPost(self,host,path,content_type,content,user_agent='RPi-Pico',port=80):

hhhhpaaa avatar Dec 29 '21 03:12 hhhhpaaa