M5StackSats
M5StackSats copied to clipboard
If connecting over ip on a LAN
(ie const char* server = "10.xxx.xxx.xxx;)
Find replace client.setCACert(test_root_ca); to //client.setCACert(test_root_ca);
In reqinvoice function replace String topost = "{\"value\...... with:
String topost = "{\"value\": \""+ value
+"\", \"memo\": \""+ memo + String(random(1,1000))
+"\", \"expiry\": \"1000\","+
+"\"private\": true}";
find replace M5.Lcd.qrcode(payreq,45,0,240,10); to M5.Lcd.qrcode(payreq,45,0,240,14);