ESP8266 Primary GUI v2

krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

superprzemo pisze: ndz wrz 08, 2019 12:15 pm
krycha88 pisze: ndz wrz 08, 2019 10:03 am
superprzemo pisze: ndz wrz 08, 2019 9:58 am

Mam takie same wersje.
A na jakie urządzenie to wygrywasz i z jaką konfiguracją.
Ustawienia supla_board:

Kod: Zaznacz cały

 add_Relay_Button(1, 3, CHOICE_TYPE);
 //   add_Relay_Button_Invert(1, 3, CHOICE_TYPE);
 // add_Relay(1);
  //  add_Relay_Invert(5);
  //  add_Roller_Shutter_Relays(5, 13) ;
  //  add_Roller_Shutter_Buttons(0, 14, 12);
  //  SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
  //  add_Sensor(4);
  //  add_Sensor(16);
//  add_DS18B20Multi_Thermometer(5);
  //  add_DS18B20_Thermometer(2);
  //  add_DHT11_Thermometer(12);
    add_DHT22_Thermometer(0);
  add_Led_Config(LED_CONFIG_PIN);
 // add_Config(CONFIG_PIN);
Ustawienia Supla_settings:

Kod: Zaznacz cały

//DHT ****************************************************************************************************
#define  DHTPIN                0
#define  DHTTYPE               DHT22
#define  MAX_DHT               8

//DS18B20 ************************************************************************************************
#define  MAX_DS18B20            4
#define  TEMPERATURE_PRECISION  10  // rozdzielczość czujnika DS 9 -12 bit
//LED CONFIG *********************************************************************************************
#define LED_CONFIG_PIN         2
//CONFIG PIN *********************************************************************************************
#define CONFIG_PIN             0 //D3     // triger config
Wgrywam do ESP-01S
Teraz sobie przypomniałem, że my już rozmawialiśmy o Twoim problemie i sam doszedłeś do wniosku, że wszystko działa ale gdy dodasz add_DHT22_Thermometer(0) to jest źle - nie miałem czasu aby na to spojrzeć...
https://gui-generic-builder.supla.io/
superprzemo
Posty: 64
Rejestracja: czw maja 09, 2019 6:52 am

krycha88 pisze: ndz wrz 08, 2019 2:23 pm
superprzemo pisze: ndz wrz 08, 2019 12:15 pm
krycha88 pisze: ndz wrz 08, 2019 10:03 am
A na jakie urządzenie to wygrywasz i z jaką konfiguracją.
Ustawienia supla_board:

Kod: Zaznacz cały

 add_Relay_Button(1, 3, CHOICE_TYPE);
 //   add_Relay_Button_Invert(1, 3, CHOICE_TYPE);
 // add_Relay(1);
  //  add_Relay_Invert(5);
  //  add_Roller_Shutter_Relays(5, 13) ;
  //  add_Roller_Shutter_Buttons(0, 14, 12);
  //  SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
  //  add_Sensor(4);
  //  add_Sensor(16);
//  add_DS18B20Multi_Thermometer(5);
  //  add_DS18B20_Thermometer(2);
  //  add_DHT11_Thermometer(12);
    add_DHT22_Thermometer(0);
  add_Led_Config(LED_CONFIG_PIN);
 // add_Config(CONFIG_PIN);
Ustawienia Supla_settings:

Kod: Zaznacz cały

//DHT ****************************************************************************************************
#define  DHTPIN                0
#define  DHTTYPE               DHT22
#define  MAX_DHT               8

//DS18B20 ************************************************************************************************
#define  MAX_DS18B20            4
#define  TEMPERATURE_PRECISION  10  // rozdzielczość czujnika DS 9 -12 bit
//LED CONFIG *********************************************************************************************
#define LED_CONFIG_PIN         2
//CONFIG PIN *********************************************************************************************
#define CONFIG_PIN             0 //D3     // triger config
Wgrywam do ESP-01S
Teraz sobie przypomniałem, że my już rozmawialiśmy o Twoim problemie i sam doszedłeś do wniosku, że wszystko działa ale gdy dodasz add_DHT22_Thermometer(0) to jest źle - nie miałem czasu aby na to spojrzeć...
Masz racje, chodziło o GPIO0, natomiast nawet jak nie dodaje DHT na ostatniej wersji softu, to przez add_relay_button przekaźnik po zalaczeniu zasilania działa odwrotnie niż powinien. Możesz oodeslac binarke u siebie skomplikowaną?
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

superprzemo pisze: ndz wrz 08, 2019 3:05 pm
krycha88 pisze: ndz wrz 08, 2019 2:23 pm
superprzemo pisze: ndz wrz 08, 2019 12:15 pm
Ustawienia supla_board:

Kod: Zaznacz cały

 add_Relay_Button(1, 3, CHOICE_TYPE);
 //   add_Relay_Button_Invert(1, 3, CHOICE_TYPE);
 // add_Relay(1);
  //  add_Relay_Invert(5);
  //  add_Roller_Shutter_Relays(5, 13) ;
  //  add_Roller_Shutter_Buttons(0, 14, 12);
  //  SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
  //  add_Sensor(4);
  //  add_Sensor(16);
//  add_DS18B20Multi_Thermometer(5);
  //  add_DS18B20_Thermometer(2);
  //  add_DHT11_Thermometer(12);
    add_DHT22_Thermometer(0);
  add_Led_Config(LED_CONFIG_PIN);
 // add_Config(CONFIG_PIN);
Ustawienia Supla_settings:

Kod: Zaznacz cały

//DHT ****************************************************************************************************
#define  DHTPIN                0
#define  DHTTYPE               DHT22
#define  MAX_DHT               8

//DS18B20 ************************************************************************************************
#define  MAX_DS18B20            4
#define  TEMPERATURE_PRECISION  10  // rozdzielczość czujnika DS 9 -12 bit
//LED CONFIG *********************************************************************************************
#define LED_CONFIG_PIN         2
//CONFIG PIN *********************************************************************************************
#define CONFIG_PIN             0 //D3     // triger config
Wgrywam do ESP-01S
Teraz sobie przypomniałem, że my już rozmawialiśmy o Twoim problemie i sam doszedłeś do wniosku, że wszystko działa ale gdy dodasz add_DHT22_Thermometer(0) to jest źle - nie miałem czasu aby na to spojrzeć...
Masz racje, chodziło o GPIO0, natomiast nawet jak nie dodaje DHT na ostatniej wersji softu, to przez add_relay_button przekaźnik po zalaczeniu zasilania działa odwrotnie niż powinien. Możesz oodeslac binarke u siebie skomplikowaną?
jeżeli działa na odwrót to wykorzystaj add_Relay_Button_Invert
https://gui-generic-builder.supla.io/
superprzemo
Posty: 64
Rejestracja: czw maja 09, 2019 6:52 am

krycha88 pisze: ndz wrz 08, 2019 7:54 pm
superprzemo pisze: ndz wrz 08, 2019 3:05 pm
krycha88 pisze: ndz wrz 08, 2019 2:23 pm
Teraz sobie przypomniałem, że my już rozmawialiśmy o Twoim problemie i sam doszedłeś do wniosku, że wszystko działa ale gdy dodasz add_DHT22_Thermometer(0) to jest źle - nie miałem czasu aby na to spojrzeć...
Masz racje, chodziło o GPIO0, natomiast nawet jak nie dodaje DHT na ostatniej wersji softu, to przez add_relay_button przekaźnik po zalaczeniu zasilania działa odwrotnie niż powinien. Możesz oodeslac binarke u siebie skomplikowaną?
jeżeli działa na odwrót to wykorzystaj add_Relay_Button_Invert
Probowalem, podobne zachowanie, tylko dodatkowo ikona w Supli odwrotnie pokazywala stan, do faktycznego stanu przekaźnika. Czy add_relay korzysta z tych samych funkcji co add_relay_button (odczyt i ustawienie stanu na pinie)?
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

superprzemo pisze: ndz wrz 08, 2019 8:05 pm
krycha88 pisze: ndz wrz 08, 2019 7:54 pm
superprzemo pisze: ndz wrz 08, 2019 3:05 pm
Masz racje, chodziło o GPIO0, natomiast nawet jak nie dodaje DHT na ostatniej wersji softu, to przez add_relay_button przekaźnik po zalaczeniu zasilania działa odwrotnie niż powinien. Możesz oodeslac binarke u siebie skomplikowaną?
jeżeli działa na odwrót to wykorzystaj add_Relay_Button_Invert
Probowalem, podobne zachowanie, tylko dodatkowo ikona w Supli odwrotnie pokazywala stan, do faktycznego stanu przekaźnika. Czy add_relay korzysta z tych samych funkcji co add_relay_button (odczyt i ustawienie stanu na pinie)?
Znalazłem błąd w SuplaDevice, który prawdopodobnie rozwiąże wasze problemy ;)
https://gui-generic-builder.supla.io/
arekrgw
Posty: 44
Rejestracja: śr sie 15, 2018 6:42 pm

krycha88 pisze: ndz wrz 08, 2019 8:21 pm
superprzemo pisze: ndz wrz 08, 2019 8:05 pm
krycha88 pisze: ndz wrz 08, 2019 7:54 pm
jeżeli działa na odwrót to wykorzystaj add_Relay_Button_Invert
Probowalem, podobne zachowanie, tylko dodatkowo ikona w Supli odwrotnie pokazywala stan, do faktycznego stanu przekaźnika. Czy add_relay korzysta z tych samych funkcji co add_relay_button (odczyt i ustawienie stanu na pinie)?
Znalazłem błąd w SuplaDevice, który prawdopodobnie rozwiąże wasze problemy ;)
Faktycznie na 4CH przekaźniki już ładnie działają tylko pomimo ustawienia przycisków na bistabilne okazuje się ze są w rzeczywistosci monostabilne.
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

arekrgw pisze: ndz wrz 08, 2019 9:20 pm
krycha88 pisze: ndz wrz 08, 2019 8:21 pm
superprzemo pisze: ndz wrz 08, 2019 8:05 pm Probowalem, podobne zachowanie, tylko dodatkowo ikona w Supli odwrotnie pokazywala stan, do faktycznego stanu przekaźnika. Czy add_relay korzysta z tych samych funkcji co add_relay_button (odczyt i ustawienie stanu na pinie)?
Znalazłem błąd w SuplaDevice, który prawdopodobnie rozwiąże wasze problemy ;)
Faktycznie na 4CH przekaźniki już ładnie działają tylko pomimo ustawienia przycisków na bistabilne okazuje się ze są w rzeczywistosci monostabilne.
A jak w konferencji przycisk zmienisz na monostabilny to jak działa?
https://gui-generic-builder.supla.io/
arekrgw
Posty: 44
Rejestracja: śr sie 15, 2018 6:42 pm

krycha88 pisze: pn wrz 09, 2019 3:32 am
arekrgw pisze: ndz wrz 08, 2019 9:20 pm
krycha88 pisze: ndz wrz 08, 2019 8:21 pm

Znalazłem błąd w SuplaDevice, który prawdopodobnie rozwiąże wasze problemy ;)
Faktycznie na 4CH przekaźniki już ładnie działają tylko pomimo ustawienia przycisków na bistabilne okazuje się ze są w rzeczywistosci monostabilne.
A jak w konferencji przycisk zmienisz na monostabilny to jak działa?
Jak jest ustawiony na monostabilny to działa tak jak powinien. Tak jakby soft nie reagował na zmianę przycisku na bistabilny i zostawał przy monostabilnym
Sibikk
Posty: 366
Rejestracja: pn lis 07, 2016 12:42 pm
Lokalizacja: Katowice
Kontakt:

Cześć
Pytanie laika
Potrzebuję zrobić sterowanie dwiema roletami na jednym module ale chciałbym ograniczyć ilość przewody do minimum, czy jest opcja aby sterować zamykaniem, otwieraniem za pomocą jednego GPIO, bo teraz z tego co widzę potrzeba 3 na jeden kanał

Kod: Zaznacz cały

 add_Roller_Shutter_Relays(16, 4) ;
    //add_Roller_Shutter_Buttons(0, 14, 12);
Czy to jest poprawna forma?

Kod: Zaznacz cały

 add_Roller_Shutter_Relays(16, 4) ;
    //add_Roller_Shutter_Buttons(*, 14, 12);
    SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
   
    add_Roller_Shutter_Relays(0, 2) ;
   // add_Roller_Shutter_Buttons(0, 14, 12);
    SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
EDIT
Jeszcze mam tego typu błąd:

Kod: Zaznacz cały

Arduino:1.8.9 (Windows Store 1.8.21.0) (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Opcje projektu zmienione, przeładuj całość
UWAGA: biblioteka SuplaDevice-master działa na architekturze(/architekturach) (avr) i może nie być kompatybilna z obecną płytką która działa na architekturze(/architekturach) (esp8266).
In file included from sketch\supla_web_server.cpp:10:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

In file included from C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:21:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                    ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

In file included from sketch\supla_board_settings.cpp:10:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

In file included from sketch\supla_eeprom.cpp:7:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                       ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino: In function 'void add_DHT11_Thermometer(int)':

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:627:23: warning: narrowing conversion of 'thermpin' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

   dht_sensor[channel] = { thermpin, DHT11 };

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino: In function 'void add_DHT22_Thermometer(int)':

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:634:23: warning: narrowing conversion of 'thermpin' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
   dht_sensor[channel] = { thermpin, DHT22 };
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                        ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

     SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);

exit status 1
'supla_rs_SavePosition' was not declared in this scope

Ten raport powinien zawierać więcej informacji jeśli w 
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"
Obrazek
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

Sibikk pisze: wt wrz 10, 2019 8:47 am Cześć
Pytanie laika
Potrzebuję zrobić sterowanie dwiema roletami na jednym module ale chciałbym ograniczyć ilość przewody do minimum, czy jest opcja aby sterować zamykaniem, otwieraniem za pomocą jednego GPIO, bo teraz z tego co widzę potrzeba 3 na jeden kanał

Kod: Zaznacz cały

 add_Roller_Shutter_Relays(16, 4) ;
    //add_Roller_Shutter_Buttons(0, 14, 12);
Czy to jest poprawna forma?

Kod: Zaznacz cały

 add_Roller_Shutter_Relays(16, 4) ;
    //add_Roller_Shutter_Buttons(*, 14, 12);
    SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
   
    add_Roller_Shutter_Relays(0, 2) ;
   // add_Roller_Shutter_Buttons(0, 14, 12);
    SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);
EDIT
Jeszcze mam tego typu błąd:

Kod: Zaznacz cały

Arduino:1.8.9 (Windows Store 1.8.21.0) (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Opcje projektu zmienione, przeładuj całość
UWAGA: biblioteka SuplaDevice-master działa na architekturze(/architekturach) (avr) i może nie być kompatybilna z obecną płytką która działa na architekturze(/architekturach) (esp8266).
In file included from sketch\supla_web_server.cpp:10:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

In file included from C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:21:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                    ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

In file included from sketch\supla_board_settings.cpp:10:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

In file included from sketch\supla_eeprom.cpp:7:0:

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:125:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:133:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:141:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:173:1: warning: 'typedef' was ignored in this declaration [enabled by default]

C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                       ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino: In function 'void add_DHT11_Thermometer(int)':

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:627:23: warning: narrowing conversion of 'thermpin' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

   dht_sensor[channel] = { thermpin, DHT11 };

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino: In function 'void add_DHT22_Thermometer(int)':

C:\Users\Sibinski\Desktop\Primary_GUI-master\Primary_GUI-master\Primary_GUI\Primary_GUI.ino:634:23: warning: narrowing conversion of 'thermpin' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
   dht_sensor[channel] = { thermpin, DHT22 };
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:76: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);
                                                                        ^
C:\Users\Sibinski\Documents\Arduino\libraries\SuplaDevice-master/SuplaDevice.h:183:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]

  int addChannel(int pin1, int pin2, bool hiIsLo, bool bistable, int type = NULL, int flag = NULL);

     SuplaDevice.setRollerShutterFuncImpl(&supla_rs_SavePosition, &supla_rs_LoadPosition, &supla_rs_SaveSettings, &supla_rs_LoadSettings);

exit status 1
'supla_rs_SavePosition' was not declared in this scope

Ten raport powinien zawierać więcej informacji jeśli w 
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"
Zacznij sobie od czegoś prostego ;) czyli oficjalnej SuplaDevice oraz przykładów https://github.com/SUPLA/arduino/blob/m ... hutter.ino

Ten kod nie wspiera zapisywania stanów rolet trzeba sobie to napisać
https://gui-generic-builder.supla.io/
Zablokowany

Wróć do „Nowości”