Skip to content

Commit cc3ebfa

Browse files
authored
Update ESP32_PMS5003T.ino
1 parent 3c66302 commit cc3ebfa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ESP32_PMS5003T.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ void getCommand(char c) {
509509

510510
String tcp_https(String domain,String request,int port,byte wait) {
511511
WiFiClientSecure client_tcp;
512-
//client_tcp.setInsecure(); //version 1.0.6
512+
client_tcp.setInsecure(); //run version 1.0.5 or above
513+
513514
if (client_tcp.connect(domain.c_str(), port)) {
514515
Serial.println("GET " + request);
515516
client_tcp.println("GET " + request + " HTTP/1.1");
@@ -562,7 +563,8 @@ String LineNotify(String token, String request, byte wait) {
562563
request.replace("%20stickerId","&stickerId");
563564

564565
WiFiClientSecure client_tcp;
565-
//client_tcp.setInsecure(); //version 1.0.6
566+
client_tcp.setInsecure(); //run version 1.0.5 or above
567+
566568
if (client_tcp.connect("notify-api.line.me", 443)) {
567569
Serial.println(request);
568570
client_tcp.println("POST /api/notify HTTP/1.1");

0 commit comments

Comments
 (0)