boolean line_notify(String msg) { WiFiClientSecure client; client.setInsecure(); if(!client.connect(host, 443)) { Serial.println("connect error!"); return false; } String query = String("message=") + msg; String request = String("") + "POST /api/notify HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Authorization: Bearer " + token + "\r\n" + "Content-Length: " + String(query.length()) + "\r\n" + "Content-Type: application/x-www-form-urlencoded\r\n\r\n" + query + "\r\n"; client.print(request); return true; }