Mam włączony szczegółowy kompilator w ArduinoIDE dlatego tak wyrzuca.
Kiedy będziesz mieć czas to zrobisz, nie poganiam
Co do błędu kompilacji jakoś nagle zniknął nie wiem jak

być może pomogło moje przeinstalowanie płytki z menedżera płytek w Arduino IDE, lecz z tym że to nie koniec problemów.
Gdy wgram program zauważyłem że wymagane jest czasem podwójne wgranie programu jeśli ESP32 nie chce się połączyć z siecią wifi.
Code: Select all
15:52:13.699 -> ⸮upla - starting initialization
15:52:13.767 -> Channel(0) value changed to temp(-275.000000), humi(-1.000000)
15:52:13.834 -> Channel(1) value changed to temp(-275.000000), humi(-1.000000)
15:52:13.902 -> Initializing network layer
15:52:13.902 -> WIFI: establishing connection with SSID: "Xperia 5_1916"
15:52:13.971 -> Using Supla protocol version 12
15:52:14.004 -> Current status: [7] SuplaDevice initialized
15:52:14.072 -> Current status: [21] No connection to network
15:52:15.082 -> wifi Station disconnected
15:52:16.193 -> wifi Station disconnected
15:52:17.304 -> wifi Station disconnected
15:52:18.416 -> wifi Station disconnected
15:52:19.561 -> wifi Station disconnected
15:52:19.664 -> wifi Station disconnected
// Ponowne wgranie programu
15:52:43.193 -> Supla - starting initialization
15:52:43.226 -> Channel(0) value changed to temp(-275.000000), humi(-1.000000)
15:52:43.293 -> Channel(1) value changed to temp(-275.000000), humi(-1.000000)
15:52:43.360 -> Initializing network layer
15:52:43.360 -> WIFI: establishing connection with SSID: "Xperia 5_1916"
15:52:43.427 -> Using Supla protocol version 12
15:52:43.461 -> Current status: [7] SuplaDevice initialized
15:52:43.528 -> Current status: [21] No connection to network
15:52:43.664 -> local IP: 192.168.43.187
15:52:43.664 -> subnetMask: 255.255.255.0
15:52:43.699 -> gatewayIP: 192.168.43.232
15:52:43.732 -> Signal Strength (RSSI): -37 dBm
15:52:43.766 -> Current status: [9] Not connected to Supla server
15:52:43.834 -> Establishing connection with: svr9.supla.org (port: 2015)
15:52:44.072 -> Connected to Supla Server
15:52:44.072 -> Current status: [10] Register in progress
15:52:44.141 ->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 0 0 0 0 0 0 0 0 0 0 55 73 65 72 20 53 57 2C 20 6C 69 62 20 32 2E 33 2E 32 0 0 0 73 76 72 39 2E 73 75 70 6C 61 2E 6F 72 67 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 DE B 0 0 0 0 0 0 2D 0 0 0 0 0 1 0 C8 CD FB FF 18 FC FF FF 1 DE B 0 0 0 0 0 0 2D 0 0 0 0 0 1 0 C8 CD FB FF 18 FC FF FF ]
15:52:45.598 -> Sending: [53 55 50 4C 41 ]
15:52:48.556 -> Received: [53 55 50 4C 41 C 1 0 0 0 46 0 0 0 7 0 0 0 11 0 0 0 78 D 1 53 55 50 4C 41 ]
15:52:48.624 -> Current status: [4] Registration disabled!
Gdzie jak już sie połaczy to z tego wynika że nie może zarejestrować urządzenia w Supla tylko pytanie dlaczego ?
Dodaje tu jeszcze kod programu z ArduinoIDE
Code: Select all
/*
Copyright (C) AC SOFTWARE SP. Z O.O.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <SPI.h>
#include <SuplaDevice.h>
#include <supla/sensor/DHT.h>
// Choose proper network interface for your card:
// Arduino Mega with EthernetShield W5100:
#include <supla/network/ethernet_shield.h>
// Ethernet MAC address
uint8_t mac[6] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05};
Supla::EthernetShield ethernet(mac);
//
// Arduino Mega with ENC28J60:
// #include <supla/network/ENC28J60.h>
// Supla::ENC28J60 ethernet(mac);
//
// ESP8266 based board:
// #include <supla/network/esp_wifi.h>
// Supla::ESPWifi wifi("your_wifi_ssid", "your_wifi_password");
//
// ESP32 based board:
#include <supla/network/esp32_wifi.h>
Supla::ESP32Wifi wifi("Xperia 5_1916", "xxxxxxx");
/*
* This example requires DHT sensor library installed.
* https://github.com/adafruit/DHT-sensor-library
*/
#define DHT1PIN 19
#define DHT1TYPE DHT22
#define DHT2PIN 25
#define DHT2TYPE DHT22
void setup() {
Serial.begin(9600);
// Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
char GUID[SUPLA_GUID_SIZE] = {x2F,0x23,0x25,0xD7,0x1B,0x7C,0x21,0xFA,0xF0};
// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {0x0x2C,0x1C,0x3E,0xAB,0xE7,0xA8};
/*
* Having your device already registered at cloud.supla.org,
* you want to change CHANNEL sequence or remove any of them,
* then you must also remove the device itself from cloud.supla.org.
* Otherwise you will get "Channel conflict!" error.
*/
// This example adds two DHT22 sensors.
// CHANNEL0 - DHT22 Sensor
new Supla::Sensor::DHT(DHT1PIN, DHT1TYPE);
// CHANNEL1 - DHT22 Sensor
new Supla::Sensor::DHT(DHT2PIN, DHT2TYPE);
/*
* SuplaDevice Initialization.
* Server address is available at https://cloud.supla.org
* If you do not have an account, you can create it at https://cloud.supla.org/account/create
* SUPLA and SUPLA CLOUD are free of charge
*
*/
SuplaDevice.begin(GUID, // Global Unique Identifier
"svrx.supla.org", // SUPLA server address
"[email protected]", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key
}
void loop() {
SuplaDevice.iterate();
}