M5stack fails to connect with blynk



  • Hello guys, i tried to run blynk, but i canot connect my atomlite's to blynk. i tried port 8080, 443 and 80 but the devices doesnt shows up in blynk as Online here is my configuration
    0_1654723263901_af189eed-724f-4479-a0c8-6b3d80319e5c-image.png

    print('Start')
    wlan = network.WLAN(network.STA_IF)
    blynk1 = blynk.Blynk(server='blynk.cloud', port=80, token='XXXX', heartbeat=30)
    blynk1.run()
    m5mqtt.start()

    Any ideas?



  • Hello @mm-uiflow

    I think you need to put the ‘blynk1.run()’ statement in the loop.

    Thanks
    Felix



  • I created a timer 0_1654770167257_78ecc3dc-435e-4d07-a135-6f5c94cdf6df-image.png

    and every 500 ms its called. still no connection
    0_1654770247174_2ad3dece-a7b0-4eb3-ac41-b5caaa4d6822-image.png

    in Debug i see the prints start and loop :
    0_1654770280796_7b0974e9-c326-4a24-9fcd-4870f941e47b-image.png

    i only used the AUTH_TOKEN, in bylnk cloud there are more things defined, you think this is the problem?
    0_1654770345513_601398db-347c-4abe-a3be-0289ca90284e-image.png



  • Hello @mm-uiflow

    yes, I think to successfully connect to blynk.cloud.com the template id is required as well. See here - check section [IMPORTANT] a bit down the page.

    I've done a quick test with Arduino Blynk code and my M5Core2 connected immediately. But with UIFlow my M5Core2 doesn't connect at all.

    I think UIFlow Blynk blocks need to be adapted to the new template id requirement.

    Thanks
    Felix



  • You can't connect to Blynk 2.0 until there is a big rebuild of the firmware as blynk uses the Virtual twin aka template method to connect whereas the old Blynk just used the username password combo.



  • Not only that but the OLD password system has been upgraded to use certificates and encryption keys.