Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- //Файл ethernet
- #include <ETH.h>
- #include "ClientSecure.h"
- void testClient() {
- ClientSecure client;
- if (!client.connect(host, port)) {
- Serial.println("connection failed");
- return;
- }
- ____________________________________________________________________________________________
- //Файл wifi
- #include <WiFi.h>
- #include "ClientSecure.h"
- void testClient() {
- ClientSecure client;
- if (!client.connect(host, port)) {
- Serial.println("connection failed");
- return;
- }
- ________________________________________________________________________________________________
- //Файл с функциями
- String gst(String sheet_id, String sending_line)
- {
- if (!client.connect(host, httpsPort))
- {
- Serial.println("connection failed");
- client.stop();
- return "0_connection_failed";
- }
- client.print(String("GET ") + "/macros/s/" + sheet_id + "/exec?" + sending_line + " HTTP/1.1\r\n" +
- "Host: " + host + "\r\n" +
- "User-Agent: test\r\n" +
- "Connection: keep-alive\r\n\r\n");
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.