Is it possible to create a QR code to give WiFi details out?


I’d like to create a QR code to give WiFi details out but am unsure what the data needs to look like.

What MCU/Processor/Board and compiler are you using?

Simulator and Linux frame buffer (Pi)

What LVGL version are you using?


What do you want to achieve?

As description

What have you tried so far?

Searching google for how to create a qr code but there seems to be only generators out there…

Code to reproduce

N/S yet

Screenshot and/or video

None sorry…

Hi @elgerg,

Look at the last QR entry in the accepted answer of this stack overflow question, hopefully you can see what you need here. There is also further useful general info here.

Here is a quick code snippet using the lv_qr library here for a WPA network called OrionsBelt with password Pass1:

  const char * data = "WIFI:T:WPA;S:OrionsBelt;P:Pass1;;";

  /*Create a QR code*/
  lv_obj_t * qr = lv_qrcode_create(lv_scr_act(), 200, lv_color_hex3(0x000), lv_color_hex3(0xfff));

  /*Set data*/
  lv_qrcode_update(qr, data, strlen(data));

Here’s the output from the LVGL simulator

Hope that helps,

Kind Regards,