Tak. Na pewno będzie to wprowwdzonearekrgw wrote: Sun Apr 19, 2020 12:20 pm Witam, jest może w planach na przyszłość wprowadzenie pamiętania stanu przekaźników po zaniku zasilania?
Aktualizacja SuplaDevice
-
- Posts: 2352
- Joined: Sun Sep 03, 2017 9:13 am
- Location: Koszalin
jak coś nie działa to włącz zasilanie.....
-
- Posts: 259
- Joined: Thu Oct 11, 2018 8:35 pm
witam.
skompilowałem z przykładów odczyt temperatury na DS wgrałem na wemos mini i wszystko fajnie działa ale ciągle rozgłasza mi sieć wifi "Wemos***" co należny dopisać do kodu zeby ni rozgłaszało sieci??
skompilowałem z przykładów odczyt temperatury na DS wgrałem na wemos mini i wszystko fajnie działa ale ciągle rozgłasza mi sieć wifi "Wemos***" co należny dopisać do kodu zeby ni rozgłaszało sieci??
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>
/*
* This example requires Dallas Temperature Control library installed.
* https://github.com/milesburton/Arduino-Temperature-Control-Library
*/
// Add include to DS sensor
#include <supla/sensor/DS18B20.h>
// ESP8266 based board:
#include <supla/network/esp_wifi.h>
Supla::ESPWifi wifi("xxx", "xxx");
//
void setup() {
Serial.begin(115200);
// Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
char GUID[SUPLA_GUID_SIZE] = {0x8F,0x9C,0x82,0xC0,0x9A,0xC8,0xBB,0xD4,0x0F,0xF0,0x28,0xEF,0xC8,0x27,0xA5,0xDD};
// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {0x18,0x4B,0x06,0x6A,0x13,0xBC,0x6E,0xB0,0x07,0xB8,0xEA,0x05,0xF5,0x16,0x74,0x2D};
/*
* 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.
*/
// CHANNEL6-9 - Thermometer DS18B20
// 4 DS18B20 thermometers at pin 23. DS address can be omitted when there is only one device at a pin
//DeviceAddress ds1addr = {0x28, 0xFF, 0xC8, 0xAB, 0x6E, 0x18, 0x01, 0xFC};
new Supla::Sensor::DS18B20(D7);
// new Supla::Sensor::DS18B20(23, ds2addr);
//new Supla::Sensor::DS18B20(23, ds3addr);
//new Supla::Sensor::DS18B20(23, ds4addr);
/*
* SuplaDevice Initialization.
* Server address, LocationID and LocationPassword are 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
"svr8.supla.org", // SUPLA server address
"grzegorz.labudda@gmail.com", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key
}
void loop() {
SuplaDevice.iterate();
}
Pozdrawiam
Grzegorz Labudda
Grzegorz Labudda
-
- Posts: 259
- Joined: Thu Oct 11, 2018 8:35 pm
-
- Posts: 259
- Joined: Thu Oct 11, 2018 8:35 pm
jeszcze jedno pytanie czy da się nadać nazwę urządzeniu bo na razie nadaje mi esp8266. fajnie by było jak bym to mógł jakoś nazwać
Pozdrawiam
Grzegorz Labudda
Grzegorz Labudda
-
- Posts: 182
- Joined: Sun Mar 29, 2020 10:03 pm
- Location: Zbąszynek
W sekcji void setup dopisz:dogu18 wrote: Fri Apr 24, 2020 1:46 pm jeszcze jedno pytanie czy da się nadać nazwę urządzeniu bo na razie nadaje mi esp8266. fajnie by było jak bym to mógł jakoś nazwać
i powinieneś być zadowolonySuplaDevice.setName("XXXXXXXXXXXXXXXXX");

-
- Posts: 259
- Joined: Thu Oct 11, 2018 8:35 pm
Code: Select all
#include <SPI.h>
#include <SuplaDevice.h>
/*
* This example requires Dallas Temperature Control library installed.
* https://github.com/milesburton/Arduino-Temperature-Control-Library
*/
// Add include to DS sensor
#include <supla/sensor/DS18B20.h>
// ESP8266 based board:
#include <supla/network/esp_wifi.h>
Supla::ESPWifi wifi("xxx", "yyy");
//
void setup() {
WiFi.softAPdisconnect(true);
Serial.begin(115200);
// Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
char GUID[SUPLA_GUID_SIZE] = {0x8F,0xC8,0xBB,0xD4,0x0F,0xF0,0x28,0xEF,0xC8,0x27,0xA5,0xDD};
// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {0x18,,0x6E,0xB0,0x07,0xB8,0xEA,0x05,0xF5,0x16,0x74,0x2D};
/*
* 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.
*/
// CHANNEL0-4 - Thermometer DS18B20
// 4 DS18B20 thermometers at pin d&. DS address can be omitted when there is only one device at a pin
//DeviceAddress ds1addr = {0x28, 0xFF, 0xC8, 0xAB, 0x6E, 0x18, 0x01, 0xFC};
new Supla::Sensor::DS18B20(D7);
// new Supla::Sensor::DS18B20(23, ds2addr);
//new Supla::Sensor::DS18B20(23, ds3addr);
//new Supla::Sensor::DS18B20(23, ds4addr);
/*
* SuplaDevice Initialization.
* Server address, LocationID and LocationPassword are 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
"svr8.supla.org", // SUPLA server address
"@gmail.com", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key
}
void loop() {
SuplaDevice.iterate();
}
Pozdrawiam
Grzegorz Labudda
Grzegorz Labudda
-
- Posts: 259
- Joined: Thu Oct 11, 2018 8:35 pm