Search found 12 matches
- Wed Jan 22, 2025 9:36 pm
- Forum: OpenAPI
- Topic: problem Signature
- Replies: 2
- Views: 5146
Re: problem Signature
Dzięki działa :-)
- Tue Jan 21, 2025 5:40 pm
- Forum: OpenAPI
- Topic: problem Signature
- Replies: 2
- Views: 5146
problem Signature
witam co w tym kodzie jest zle ze zwraca mi taki blad Kod HTTP: 200
Odpowiedź serwera:
{"errno":40256,"msg":"Parameter could not be parsed correctly illegal signature"}
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
#include <MD5Builder.h>
#include ...
Odpowiedź serwera:
{"errno":40256,"msg":"Parameter could not be parsed correctly illegal signature"}
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
#include <MD5Builder.h>
#include ...
Arduino
Witam posiada ktoś kod na Arduino do połączenia z foxess cloud za pomocą API, chciałbym otrzymywać informacje w czasie rzeczywistym, dziękuję . Pozdrawiam
- Wed Jan 15, 2025 5:57 pm
- Forum: OpenAPI
- Topic: Powershell
- Replies: 0
- Views: 365
Powershell
Witam może ktoś napisać gotowy kod na Windows Powershell aby otrzymać zwrotne dane z czasu rzeczywistego z API?
Re: Esp8266
Dlaczego ten kod nie zwraca mi danych # Ustawienie parametrów
$deviceSN = "xxxxxxxxx" # Numer seryjny urządzenia
$token = "xxxxxxxxxx" # Twój token API
$timestamp = (Get-Date -UFormat "%s") * 1000 # Aktualny timestamp w milisekundach
$path = "/op/v0/device/real/query" # Ścieżka do API
# Połącz dane ...
$deviceSN = "xxxxxxxxx" # Numer seryjny urządzenia
$token = "xxxxxxxxxx" # Twój token API
$timestamp = (Get-Date -UFormat "%s") * 1000 # Aktualny timestamp w milisekundach
$path = "/op/v0/device/real/query" # Ścieżka do API
# Połącz dane ...
Re: Esp8266
Kombinuje już na wszystkie sposoby za pomocną chatgpt i chyba sobie odpisze ta integrację:-(
Re: Esp8266
Have you had any luck getting this working ?
The code looks ok, but be useful to see the exact response you get.
admittedly in python, but this is what I use for headers (token=apikey) which works fine, I don't include the Content-Length as you do
timestamp = round(time.time() * 1000 ...
Re: Esp8266
Wgrywając mój kod w monitorze szeregowym zwraca mi jedynie "nie udało się połączyć z serwerem API"
Re: Esp8266
Dzięki za podpowiedź poprawiłem kod ale mam teraz błąd nie udało się połączyć z serwerem API
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <MD5Builder.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Dane Wi-Fi
const char* ssid = "xxxxxx";
const char* password = "xxxxxxxx ...
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <MD5Builder.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Dane Wi-Fi
const char* ssid = "xxxxxx";
const char* password = "xxxxxxxx ...
Re: Esp8266
Taki błąd mi zwraca
HTTP/1.1 200 OK
content-type: application/json;charset=utf-8
content-length: 81
date: Sat, 11 Jan 2025 12:27:50 GMT
x-envoy-upstream-service-time: 6
server: istio-envoy
connection: close
{"errno":40256,"msg":"Parameter could not be parsed correctly illegal timestamp"}
Napięcie ...
HTTP/1.1 200 OK
content-type: application/json;charset=utf-8
content-length: 81
date: Sat, 11 Jan 2025 12:27:50 GMT
x-envoy-upstream-service-time: 6
server: istio-envoy
connection: close
{"errno":40256,"msg":"Parameter could not be parsed correctly illegal timestamp"}
Napięcie ...
Re: Esp8266
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <MD5Builder.h>
#include <ArduinoJson.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Dane Wi-Fi
const char* ssid = "xxxxxxx";
const char* password = "xxxxxxxx";
// Dane API FoxESS
const char* apiHost = "www.foxesscloud.com";
const ...
#include <WiFiClientSecure.h>
#include <MD5Builder.h>
#include <ArduinoJson.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
// Dane Wi-Fi
const char* ssid = "xxxxxxx";
const char* password = "xxxxxxxx";
// Dane API FoxESS
const char* apiHost = "www.foxesscloud.com";
const ...
Esp8266
Witam udało się komuś napisać kod na esp8266 do komunikacji z falownikiem za pomocą API?