Replies: 2 comments
-
#include <WiFi.h> extern "C" { #define SWITCH_PIN 4 const char* ssid = "aaa"; const char* ntpServer = "pool.ntp.org"; int layer = 1; StaticJsonDocument<128> doc; // for JSON data struct sh2lib_handle hd; int handle_post_response(struct sh2lib_handle *handle, const char *data, size_t len, int flags)
} int send_json_data(struct sh2lib_handle *handle, char *buf, size_t length, uint32_t *data_flags)
} void setup() { if (WiFi.waitForConnectResult() != WL_CONNECTED) { Serial.println(); if (sh2lib_connect(&hd, URL) != ESP_OK) { void loop() { if(digitalRead(SWITCH_PIN) == HIGH && job_order <= 4294967295){
} } |
Beta Was this translation helpful? Give feedback.
-
The current support for HTTP/2 is through the ESP-IDF and not from Arduino API. You can use the ESP-IDF APIs inside your Arduino code. Here is a starting point: #1130 (comment) The Arduino API for HTTP/2 will be implemented in a future release of the Arduino-ESP32 Core. |
Beta Was this translation helpful? Give feedback.
-
My test server does not have any of the verification, but how can I adjust this issue? My code is down below. This is my first time in dealing with HTTP/2.
Beta Was this translation helpful? Give feedback.
All reactions