I have pico 4 wd kit but when I try to control using app… after copying app_control program as main.py and while it’s running I get this error. syntax error in JSON
kit url -
https://docs.sunfounder.com/projects/pico-4wd-car/en/latest/
I have pico 4 wd kit but when I try to control using app… after copying app_control program as main.py and while it’s running I get this error. syntax error in JSON
kit url -
https://docs.sunfounder.com/projects/pico-4wd-car/en/latest/
I’m not sure if it can help you, I took a quick look at code and I think I found a mistake in AP wifi setting for SSID, as shown on pic. Maybe try to set SSID “pico_4wd_car” and upload code through car.
thanks for the response ! Tinkered program a bit to capture jason being sent from the app to WS. this is the log. it’s consistently missing K value. any ideas ? I am using sunfounder controller app on iphone 16 and used pico4wd layout
ws loop, receive: {“”:null,“A”:0,“Len”:“0028”}
on revceive: {“”:null,“A”:0,“Len”:“0028”}
Raw Data Received: {‘A’: 0, ‘’: None, ‘Len’: ‘0028’}
Received Data: {‘A’: 0, ‘’: None, ‘Len’: ‘0028’}
Warning: Missing ‘K’ key in received data.
Try pressing the app’s k control (directional control rocker) all the time and see if it works.
I tried a few options but did not work… can you send me what is the exact file format this webserver expects to receive? I checked all documentations online - but could not find this. I guess there may be a few format for direction controls, start stop… adding those to documentation may help many others like me too. Thanks for your reply.