Czas, zegar, clock w SuplaDevice

Awatar użytkownika
klew
Posty: 1328
Rejestracja: czw cze 27, 2019 12:16 pm

pn paź 12, 2020 12:19 pm

Jakiś czas temu, po cichaczu, pojawiła się w SuplaDevice obsługa czasu.

Kod: Zaznacz cały

#include <supla/clock/clock.h>

// setup() 
// ...
SuplaDevice.addClock(new Supla::Clock);

...
auto clock1 = SuplaDevice.getClock();
if (clock1.getHour() == 17) {
...
}
Pełna lista dostępnych metod:

Kod: Zaznacz cały

  int getYear();
  int getMonth();
  int getDay();
  int getDayOfWeek(); // 1 - Sunday, 2 - Monday
  int getHour();
  int getMin();
  int getSec();
Klasa Supla::Clock pobiera czas z serwera Supli (na chwilę obecną robi to co 1 min) i mierzy upływ czasu od tego momentu. Także urządzenie dostanie czas w momencie podłącznia do serwera. Następnie, jeśli utraci połączenie, to będzie liczyć ile czasu upłynęło i zegarek będzie działał w miarę poprawnie. Nie sprawdzałem tego jeszcze na ESP8266, ale na moim Arduino Mega zegar jest trochę mało precyzyjny i w ciągu minuty, zegar potrafił się "rozjechać" o około 1 s. Także, jeśli "nie zamierzacie z tego strzelać" ;) to można zacząć używać w swoich projektach. Czas jest oczywiście gubiony po resecie urządzenia.
Czas jest w lokalnej strefie czasowej ustawionej na Cloud, także zegarek powinien pokazać tą samą godzinę.
Biblioteki "time" dla płytki Arduino Mega posiadają też kilka ciekawych funkcji. Np. po podaniu lokalizacji można sobie pobrać czas wschodu i zachodu słońca. Niestety w bibliotekach na ESP już tych funkcji nie ma, więc nie dodawałem tych metod do oficjalnego interfejsu. Natomiast klasa Clock ustawia także zegar "systemowy", więc kto chce, może w swoim projekcie korzystać z dobrodziejstw biblioteki time na Arduino Mega.

W planach jest dołożenie możliwości obsługi zewnętrznego zegara z podtrzymaniem na baterii (RTC).
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

pn paź 12, 2020 12:41 pm

Po cichaczu, ale została zauważona i wyczekiwała na ten właśnie post :)
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

sob paź 17, 2020 10:03 pm

@klew,

po dodaniu

Kod: Zaznacz cały

#include <supla/clock/clock.h>
Supla::Clock suplaClock;
pojawiła się anomalia wysyłania pozycji rolety na serwer

Kod: Zaznacz cały

RollerShutter[0] new value from server: 0
Channel(0) value changed to 37
Channel(0) value changed to 36
Channel(0) value changed to 35
Channel(0) value changed to 34
Channel(0) value changed to 33
Channel(0) value changed to 32
Channel(0) value changed to 31
Channel(0) value changed to 30
Channel(0) value changed to 29
Channel(0) value changed to 28
Channel(0) value changed to 27
Channel(0) value changed to 26
Channel(0) value changed to 25
Channel(0) value changed to 24
Channel(0) value changed to 23
Channel(0) value changed to 22
Channel(0) value changed to 21
Channel(0) value changed to 20
Channel(0) value changed to 19
Channel(0) value changed to 18
Channel(0) value changed to 17
Channel(0) value changed to 16
Channel(0) value changed to 15
Channel(0) value changed to 14
Channel(0) value changed to 13
Channel(0) value changed to 12
Channel(0) value changed to 11
Channel(0) value changed to 10
Channel(0) value changed to 9
Channel(0) value changed to 8
Channel(0) value changed to 7
Channel(0) value changed to 6
Channel(0) value changed to 5
Channel(0) value changed to 4
Channel(0) value changed to 3
Channel(0) value changed to 2
Channel(0) value changed to 1
Channel(0) value changed to 0
Sending: [53 55 50 4C 41 C 8 0 0 0 28 0 0 0 10 0 0 0 8C 0 0 0 0 0 0 0 BA 8A 1 0 0 0 0 0 ]
Sending: [53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C 9 0 0 0 32 0 0 0 10 0 0 0 5 65 8B 5F 0 0 0 0 CD 1F 5 0 0 0 0 0 53 55 50 4C 41 ]
Sending: [53 55 50 4C 41 C 9 0 0 0 28 0 0 0 10 0 0 0 A5 0 0 0 0 0 0 0 91 8E 1 0 0 0 0 0 ]
Sending: [53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C A 0 0 0 32 0 0 0 10 0 0 0 1E 65 8B 5F 0 0 0 0 B2 7C 4 0 0 0 0 0 53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C B 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
RollerShutter[0] new value from server: 0
Received: [53 55 50 4C 41 C C 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
RollerShutter[0] new value from server: 0
Wrote 9 bytes to storage at 528
Commit
Awatar użytkownika
klew
Posty: 1328
Rejestracja: czw cze 27, 2019 12:16 pm

ndz paź 18, 2020 6:51 am

lukfud pisze:
sob paź 17, 2020 10:03 pm
@klew,

po dodaniu

Kod: Zaznacz cały

#include <supla/clock/clock.h>
Supla::Clock suplaClock;
pojawiła się anomalia wysyłania pozycji rolety na serwer

Kod: Zaznacz cały

RollerShutter[0] new value from server: 0
Channel(0) value changed to 37
Channel(0) value changed to 36
Channel(0) value changed to 35
Channel(0) value changed to 34
Channel(0) value changed to 33
Channel(0) value changed to 32
Channel(0) value changed to 31
Channel(0) value changed to 30
Channel(0) value changed to 29
Channel(0) value changed to 28
Channel(0) value changed to 27
Channel(0) value changed to 26
Channel(0) value changed to 25
Channel(0) value changed to 24
Channel(0) value changed to 23
Channel(0) value changed to 22
Channel(0) value changed to 21
Channel(0) value changed to 20
Channel(0) value changed to 19
Channel(0) value changed to 18
Channel(0) value changed to 17
Channel(0) value changed to 16
Channel(0) value changed to 15
Channel(0) value changed to 14
Channel(0) value changed to 13
Channel(0) value changed to 12
Channel(0) value changed to 11
Channel(0) value changed to 10
Channel(0) value changed to 9
Channel(0) value changed to 8
Channel(0) value changed to 7
Channel(0) value changed to 6
Channel(0) value changed to 5
Channel(0) value changed to 4
Channel(0) value changed to 3
Channel(0) value changed to 2
Channel(0) value changed to 1
Channel(0) value changed to 0
Sending: [53 55 50 4C 41 C 8 0 0 0 28 0 0 0 10 0 0 0 8C 0 0 0 0 0 0 0 BA 8A 1 0 0 0 0 0 ]
Sending: [53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C 9 0 0 0 32 0 0 0 10 0 0 0 5 65 8B 5F 0 0 0 0 CD 1F 5 0 0 0 0 0 53 55 50 4C 41 ]
Sending: [53 55 50 4C 41 C 9 0 0 0 28 0 0 0 10 0 0 0 A5 0 0 0 0 0 0 0 91 8E 1 0 0 0 0 0 ]
Sending: [53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C A 0 0 0 32 0 0 0 10 0 0 0 1E 65 8B 5F 0 0 0 0 B2 7C 4 0 0 0 0 0 53 55 50 4C 41 ]
Received: [53 55 50 4C 41 C B 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
RollerShutter[0] new value from server: 0
Received: [53 55 50 4C 41 C C 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
RollerShutter[0] new value from server: 0
Wrote 9 bytes to storage at 528
Commit
Zegar raczej nie ma wpływu na zachowanie rolet. Co tutaj jest nieoczekiwanego?
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

ndz paź 18, 2020 7:32 am

klew pisze:
ndz paź 18, 2020 6:51 am
Zegar raczej nie ma wpływu na zachowanie rolet. Co tutaj jest nieoczekiwanego?
Brak logów

Kod: Zaznacz cały

Sending: [... ]
po zmianach wartości. Pomimo, że roleta się przemieszcza, w app/cloud jej pozycja się nie zmienia.

Po usunięciu tego define'a działanie rolety wróciło do normy, więc jednak jakiś wpływ ma ;)
Awatar użytkownika
klew
Posty: 1328
Rejestracja: czw cze 27, 2019 12:16 pm

ndz paź 18, 2020 7:50 am

Jakiego define'a?
Dodaj timestamp do logów.
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

ndz paź 18, 2020 9:49 am

klew pisze:
ndz paź 18, 2020 7:50 am
Jakiego define'a?
Dodaj timestamp do logów.
Moja pomyłka, chodziło mi o include'a.

Kiedy jest dodany:

Kod: Zaznacz cały

#include <supla/clock/clock.h>
Supla::Clock suplaClock;
log wygląda tak jak niżej, stan otwarcia nie wysyłany jest na serwer, podczas ruchu w aplikacji nic się nie zmienia.

Kod: Zaznacz cały

11:25:24.660 -> Supla - starting initialization
11:25:24.708 -> Storage initialization
11:25:24.708 -> readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
11:25:24.708 -> Storage: Number of sections 1
11:25:24.708 -> Reading section: 0
11:25:24.708 -> readStorage: 7; Read: [3 9 0 0 0 0 0 ]
11:25:24.708 -> Section type: 3; size: 9
11:25:24.708 -> Validating storage state section with current device configuration
11:25:24.708 -> Storage state section validation completed. Loading elements state...
11:25:24.708 -> readStorage: 9; Read: [88 13 0 0 88 13 0 0 64 ]
11:25:24.708 -> RollerShutter[0] settings restored from storage. Opening time: 5000 ms; closing time: 5000 ms. Position: 100
11:25:24.708 -> Initializing network layer
11:25:24.745 -> WiFi: establishing connection with SSID: "home_wifi_n"
11:25:24.778 -> Channel(0) value changed to 100
11:25:24.778 -> Using Supla protocol version 12
11:25:24.812 -> # SuplaDevice initialized (7)
11:25:24.812 -> # No connection to network (21)
11:25:30.612 -> local IP: 192.168.115.12
11:25:30.612 -> subnetMask: 255.255.255.0
11:25:30.612 -> gatewayIP: 192.168.115.1
11:25:30.612 -> Signal strength (RSSI): -54 dBm
11:25:30.695 -> # Not connected to Supla server (9)
11:25:30.695 -> Establishing unsecured connection with: myqnapcloud.pl (port: 2015)
11:25:30.895 -> Connection fail (0). Server: myqnapcloud.pl
11:25:32.895 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:25:33.095 -> Connection fail (0). Server: myqnapcloud.pl
11:25:35.124 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:25:35.324 -> Connection fail (0). Server: myqnapcloud.pl
11:25:37.329 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:25:37.329 -> Connection fail (0). Server: myqnapcloud.pl
11:25:39.313 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:25:39.360 -> Connected to Supla Server
11:25:39.360 -> # Register in progress (10)
11:25:39.360 -> Sending: [53 55 50 4C 41 C 1 0 0 0 45 0 0 0 61 2 0 0 73 75 70 6C 61 40 6D 79 71 6E 61 70 63 6C 6F 75 64 2E 70 6C 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 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 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 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 98 F4 AB D7 F5 B5 98 B5 F4 F5 AB D7 B5 98 F5 F4 98 F4 AB D7 F5 B5 98 B5 F4 F5 AB D7 B5 98 F5 F4 4C 6F 72 61 54 61 70 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 2E 33 2E 32 2F 31 2E 38 20 40 6C 75 6B 66 75 64 0 0 0 0 6D 79 71 6E 61 70 63 6C 6F 75 64 2E 70 6C 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 1 0 54 B 0 0 10 0 0 0 6E 0 0 0 0 0 1 0 64 0 0 0 0 0 0 0 ]
11:25:39.462 -> Sending: [53 55 50 4C 41 ]
11:25:39.510 -> Received: [53 55 50 4C 41 C 1 0 0 0 46 0 0 0 7 0 0 0 3 0 0 0 78 D 1 53 55 50 4C 41 ]
11:25:39.510 -> Device registered (activity timeout 120 s, server version: 13, server min version: 1)
11:25:39.510 -> # Registered and ready. (17)
11:25:39.510 -> Changing activity timeout to 30
11:25:39.510 -> Sending: [53 55 50 4C 41 C 2 0 0 0 D2 0 0 0 1 0 0 0 1E ]
11:25:39.510 -> Sending: [53 55 50 4C 41 ]
11:25:39.510 -> Sending: [53 55 50 4C 41 C 3 0 0 0 E0 1 0 0 0 0 0 0 ]
11:25:39.510 -> Sending: [53 55 50 4C 41 ]
11:25:39.544 -> Received: [53 55 50 4C 41 C 2 0 0 0 DC 0 0 0 3 0 0 0 1E A F0 53 55 50 4C 41 ]
11:25:39.544 -> Activity timeout set to 30 s
11:25:39.713 -> Received: [53 55 50 4C 41 C 3 0 0 0 EA 1 0 0 1A 0 0 0 E4 7 A 12 1 9 19 27 E 0 0 0 45 75 72 6F 70 65 2F 57 61 72 73 61 77 0 53 55 50 4C 41 ]
11:26:04.528 -> Sending: [53 55 50 4C 41 C 4 0 0 0 28 0 0 0 10 0 0 0 28 0 0 0 0 0 0 0 A5 8C 2 0 0 0 0 0 ]
11:26:04.528 -> Sending: [53 55 50 4C 41 ]
11:26:04.528 -> Received: [53 55 50 4C 41 C 4 0 0 0 32 0 0 0 10 0 0 0 2C A 8C 5F 0 0 0 0 26 F1 9 0 0 0 0 0 53 55 50 4C 41 ]
11:26:11.895 -> Received: [53 55 50 4C 41 C 5 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
11:26:11.895 -> RollerShutter[0] new value from server: 0
11:26:11.943 -> Channel(0) value changed to 99
11:26:11.977 -> Channel(0) value changed to 98
11:26:12.027 -> Channel(0) value changed to 97
11:26:12.061 -> Channel(0) value changed to 96
11:26:12.110 -> Channel(0) value changed to 95
11:26:12.161 -> Channel(0) value changed to 94
11:26:12.219 -> Channel(0) value changed to 93
11:26:12.264 -> Channel(0) value changed to 92
11:26:12.311 -> Channel(0) value changed to 91
11:26:12.362 -> Channel(0) value changed to 90
11:26:12.410 -> Channel(0) value changed to 89
11:26:12.462 -> Channel(0) value changed to 88
11:26:12.510 -> Channel(0) value changed to 87
11:26:12.581 -> Channel(0) value changed to 86
11:26:12.627 -> Channel(0) value changed to 85
11:26:12.660 -> Channel(0) value changed to 84
11:26:12.710 -> Channel(0) value changed to 83
11:26:12.781 -> Channel(0) value changed to 82
11:26:12.827 -> Channel(0) value changed to 81
11:26:12.860 -> Channel(0) value changed to 80
11:26:12.910 -> Channel(0) value changed to 79
11:26:12.947 -> Channel(0) value changed to 78
11:26:12.993 -> Channel(0) value changed to 77
11:26:13.063 -> Channel(0) value changed to 76
11:26:13.134 -> Channel(0) value changed to 75
11:26:13.178 -> Channel(0) value changed to 74
11:26:13.229 -> Channel(0) value changed to 73
11:26:13.264 -> Channel(0) value changed to 72
11:26:13.310 -> Channel(0) value changed to 71
11:26:13.396 -> Channel(0) value changed to 70
11:26:13.444 -> Channel(0) value changed to 69
11:26:13.494 -> Channel(0) value changed to 68
11:26:13.543 -> Channel(0) value changed to 67
11:26:13.543 -> Channel(0) value changed to 66
11:26:13.610 -> Channel(0) value changed to 65
11:26:13.679 -> Channel(0) value changed to 64
11:26:13.727 -> Channel(0) value changed to 63
11:26:13.760 -> Channel(0) value changed to 62
11:26:13.810 -> Channel(0) value changed to 61
11:26:13.885 -> Channel(0) value changed to 60
11:26:13.927 -> Channel(0) value changed to 59
11:26:13.960 -> Channel(0) value changed to 58
11:26:14.010 -> Channel(0) value changed to 57
11:26:14.064 -> Channel(0) value changed to 56
11:26:14.110 -> Channel(0) value changed to 55
11:26:14.164 -> Channel(0) value changed to 54
11:26:14.210 -> Channel(0) value changed to 53
11:26:14.249 -> Channel(0) value changed to 52
11:26:14.326 -> Channel(0) value changed to 51
11:26:14.360 -> Channel(0) value changed to 50
11:26:14.431 -> Channel(0) value changed to 49
11:26:14.477 -> Channel(0) value changed to 48
11:26:14.526 -> Channel(0) value changed to 47
11:26:14.577 -> Channel(0) value changed to 46
11:26:14.628 -> Channel(0) value changed to 45
11:26:14.678 -> Channel(0) value changed to 44
11:26:14.727 -> Channel(0) value changed to 43
11:26:14.760 -> Channel(0) value changed to 42
11:26:14.810 -> Channel(0) value changed to 41
11:26:14.860 -> Channel(0) value changed to 40
11:26:14.910 -> Channel(0) value changed to 39
11:26:14.984 -> Channel(0) value changed to 38
11:26:15.027 -> Channel(0) value changed to 37
11:26:15.069 -> Channel(0) value changed to 36
11:26:15.109 -> Channel(0) value changed to 35
11:26:15.184 -> Channel(0) value changed to 34
11:26:15.227 -> Channel(0) value changed to 33
11:26:15.277 -> Channel(0) value changed to 32
11:26:15.327 -> Channel(0) value changed to 31
11:26:15.377 -> Channel(0) value changed to 30
11:26:15.428 -> Channel(0) value changed to 29
11:26:15.478 -> Channel(0) value changed to 28
11:26:15.528 -> Channel(0) value changed to 27
11:26:15.577 -> Channel(0) value changed to 26
11:26:15.610 -> Channel(0) value changed to 25
11:26:15.686 -> Channel(0) value changed to 24
11:26:15.728 -> Channel(0) value changed to 23
11:26:15.778 -> Channel(0) value changed to 22
11:26:15.827 -> Channel(0) value changed to 21
11:26:15.877 -> Channel(0) value changed to 20
11:26:15.927 -> Channel(0) value changed to 19
11:26:15.978 -> Channel(0) value changed to 18
11:26:16.029 -> Channel(0) value changed to 17
11:26:16.077 -> Channel(0) value changed to 16
11:26:16.110 -> Channel(0) value changed to 15
11:26:16.152 -> Channel(0) value changed to 14
11:26:16.232 -> Channel(0) value changed to 13
11:26:16.277 -> Channel(0) value changed to 12
11:26:16.327 -> Channel(0) value changed to 11
11:26:16.376 -> Channel(0) value changed to 10
11:26:16.426 -> Channel(0) value changed to 9
11:26:16.460 -> Channel(0) value changed to 8
11:26:16.510 -> Channel(0) value changed to 7
11:26:16.543 -> Channel(0) value changed to 6
11:26:16.630 -> Channel(0) value changed to 5
11:26:16.677 -> Channel(0) value changed to 4
11:26:16.710 -> Channel(0) value changed to 3
11:26:16.752 -> Channel(0) value changed to 2
11:26:16.831 -> Channel(0) value changed to 1
11:26:16.876 -> Channel(0) value changed to 0
11:26:29.527 -> Sending: [53 55 50 4C 41 C 5 0 0 0 28 0 0 0 10 0 0 0 41 0 0 0 0 0 0 0 6B 90 2 0 0 0 0 0 ]
11:26:29.527 -> Sending: [53 55 50 4C 41 ]
11:26:29.576 -> Received: [53 55 50 4C 41 C 6 0 0 0 32 0 0 0 10 0 0 0 45 A 8C 5F 0 0 0 0 4E 90 A 0 0 0 0 0 53 55 50 4C 41 ]
11:26:54.547 -> Sending: [53 55 50 4C 41 C 6 0 0 0 28 0 0 0 10 0 0 0 5A 0 0 0 0 0 0 0 63 94 2 0 0 0 0 0 ]
11:26:54.547 -> Sending: [53 55 50 4C 41 ]
11:26:54.547 -> Received: [53 55 50 4C 41 C 7 0 0 0 32 0 0 0 10 0 0 0 5E A 8C 5F 0 0 0 0 F8 E5 9 0 0 0 0 0 53 55 50 4C 41 ]
a kiedy go usunę, log wygląda tak i wszysko działa normalnie.

Kod: Zaznacz cały

11:46:06.686 -> Supla - starting initialization
11:46:06.686 -> Storage initialization
11:46:06.686 -> readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
11:46:06.686 -> Storage: Number of sections 1
11:46:06.686 -> Reading section: 0
11:46:06.686 -> readStorage: 7; Read: [3 9 0 0 0 0 0 ]
11:46:06.686 -> Section type: 3; size: 9
11:46:06.686 -> Validating storage state section with current device configuration
11:46:06.686 -> Storage state section validation completed. Loading elements state...
11:46:06.686 -> readStorage: 9; Read: [88 13 0 0 88 13 0 0 64 ]
11:46:06.686 -> RollerShutter[0] settings restored from storage. Opening time: 5000 ms; closing time: 5000 ms. Position: 100
11:46:06.723 -> Initializing network layer
11:46:06.723 -> WiFi: establishing connection with SSID: "home_wifi_n"
11:46:06.771 -> Channel(0) value changed to 100
11:46:06.771 -> Using Supla protocol version 12
11:46:06.771 -> # SuplaDevice initialized (7)
11:46:06.771 -> # No connection to network (21)
11:46:12.588 -> local IP: 192.168.115.12
11:46:12.588 -> subnetMask: 255.255.255.0
11:46:12.588 -> gatewayIP: 192.168.115.1
11:46:12.588 -> Signal strength (RSSI): -62 dBm
11:46:12.688 -> # Not connected to Supla server (9)
11:46:12.688 -> Establishing unsecured connection with: myqnapcloud.pl (port: 2015)
11:46:12.872 -> Connection fail (0). Server: myqnapcloud.pl
11:46:14.871 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:46:15.088 -> Connection fail (0). Server: myqnapcloud.pl
11:46:17.111 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:46:17.310 -> Connection fail (0). Server: myqnapcloud.pl
11:46:19.338 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:46:19.338 -> Connection fail (0). Server: myqnapcloud.pl
11:46:21.306 -> Establishing  with: myqnapcloud.pl (port: 2015)
11:46:21.354 -> Connected to Supla Server
11:46:21.354 -> # Register in progress (10)
11:46:21.354 -> Sending: [53 55 50 4C 41 C 1 0 0 0 45 0 0 0 61 2 0 0 73 75 70 6C 61 40 6D 79 71 6E 61 70 63 6C 6F 75 64 2E 70 6C 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 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 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 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 98 F4 AB D7 F5 B5 98 B5 F4 F5 AB D7 B5 98 F5 F4 98 F4 AB D7 F5 B5 98 B5 F4 F5 AB D7 B5 98 F5 F4 4C 6F 72 61 54 61 70 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 2E 33 2E 32 2F 31 2E 38 20 40 6C 75 6B 66 75 64 0 0 0 0 6D 79 71 6E 61 70 63 6C 6F 75 64 2E 70 6C 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 1 0 54 B 0 0 10 0 0 0 6E 0 0 0 0 0 1 0 64 0 0 0 0 0 0 0 ]
11:46:21.438 -> Sending: [53 55 50 4C 41 ]
11:46:21.506 -> Received: [53 55 50 4C 41 C 1 0 0 0 46 0 0 0 7 0 0 0 3 0 0 0 78 D 1 53 55 50 4C 41 ]
11:46:21.506 -> Device registered (activity timeout 120 s, server version: 13, server min version: 1)
11:46:21.556 -> # Registered and ready. (17)
11:46:21.556 -> Changing activity timeout to 30
11:46:21.556 -> Sending: [53 55 50 4C 41 C 2 0 0 0 D2 0 0 0 1 0 0 0 1E ]
11:46:21.556 -> Sending: [53 55 50 4C 41 ]
11:46:21.556 -> Received: [53 55 50 4C 41 C 2 0 0 0 DC 0 0 0 3 0 0 0 1E A F0 53 55 50 4C 41 ]
11:46:21.556 -> Activity timeout set to 30 s
11:46:39.050 -> Received: [53 55 50 4C 41 C 3 0 0 0 6E 0 0 0 11 0 0 0 1 0 0 0 0 32 0 32 0 A 0 0 0 0 0 0 0 53 55 50 4C 41 ]
11:46:39.097 -> RollerShutter[0] new value from server: 0
11:46:39.097 -> Channel(0) value changed to 99
11:46:39.097 -> Sending: [53 55 50 4C 41 C 3 0 0 0 64 0 0 0 9 0 0 0 0 63 0 0 0 0 0 0 0 ]
11:46:39.097 -> Sending: [53 55 50 4C 41 ]
11:46:39.143 -> Channel(0) value changed to 98
11:46:39.190 -> Channel(0) value changed to 97
11:46:39.190 -> Sending: [53 55 50 4C 41 C 4 0 0 0 64 0 0 0 9 0 0 0 0 61 0 0 0 0 0 0 0 ]
11:46:39.190 -> Sending: [53 55 50 4C 41 ]
11:46:39.246 -> Channel(0) value changed to 96
11:46:39.287 -> Channel(0) value changed to 95
11:46:39.287 -> Sending: [53 55 50 4C 41 C 5 0 0 0 64 0 0 0 9 0 0 0 0 5F 0 0 0 0 0 0 0 ]
11:46:39.287 -> Sending: [53 55 50 4C 41 ]
11:46:39.337 -> Channel(0) value changed to 94
11:46:39.370 -> Channel(0) value changed to 93
11:46:39.420 -> Sending: [53 55 50 4C 41 C 6 0 0 0 64 0 0 0 9 0 0 0 0 5D 0 0 0 0 0 0 0 ]
11:46:39.420 -> Sending: [53 55 50 4C 41 ]
11:46:39.420 -> Channel(0) value changed to 92
11:46:39.471 -> Channel(0) value changed to 91
11:46:39.520 -> Sending: [53 55 50 4C 41 C 7 0 0 0 64 0 0 0 9 0 0 0 0 5B 0 0 0 0 0 0 0 ]
11:46:39.520 -> Sending: [53 55 50 4C 41 ]
11:46:39.520 -> Channel(0) value changed to 90
11:46:39.598 -> Channel(0) value changed to 89
11:46:39.598 -> Sending: [53 55 50 4C 41 C 8 0 0 0 64 0 0 0 9 0 0 0 0 59 0 0 0 0 0 0 0 ]
11:46:39.598 -> Sending: [53 55 50 4C 41 ]
11:46:39.637 -> Channel(0) value changed to 88
11:46:39.681 -> Channel(0) value changed to 87
11:46:39.681 -> Sending: [53 55 50 4C 41 C 9 0 0 0 64 0 0 0 9 0 0 0 0 57 0 0 0 0 0 0 0 ]
11:46:39.681 -> Sending: [53 55 50 4C 41 ]
11:46:39.721 -> Channel(0) value changed to 86
11:46:39.770 -> Channel(0) value changed to 85
11:46:39.804 -> Sending: [53 55 50 4C 41 C A 0 0 0 64 0 0 0 9 0 0 0 0 55 0 0 0 0 0 0 0 ]
11:46:39.804 -> Sending: [53 55 50 4C 41 ]
11:46:39.837 -> Channel(0) value changed to 84
11:46:39.884 -> Channel(0) value changed to 83
11:46:39.884 -> Sending: [53 55 50 4C 41 C B 0 0 0 64 0 0 0 9 0 0 0 0 53 0 0 0 0 0 0 0 ]
11:46:39.884 -> Sending: [53 55 50 4C 41 ]
11:46:39.921 -> Channel(0) value changed to 82
11:46:39.970 -> Channel(0) value changed to 81
11:46:40.003 -> Sending: [53 55 50 4C 41 C C 0 0 0 64 0 0 0 9 0 0 0 0 51 0 0 0 0 0 0 0 ]
11:46:40.003 -> Sending: [53 55 50 4C 41 ]
11:46:40.037 -> Channel(0) value changed to 80
11:46:40.086 -> Channel(0) value changed to 79
11:46:40.086 -> Sending: [53 55 50 4C 41 C D 0 0 0 64 0 0 0 9 0 0 0 0 4F 0 0 0 0 0 0 0 ]
11:46:40.086 -> Sending: [53 55 50 4C 41 ]
11:46:40.120 -> Channel(0) value changed to 78
11:46:40.171 -> Channel(0) value changed to 77
11:46:40.220 -> Sending: [53 55 50 4C 41 C E 0 0 0 64 0 0 0 9 0 0 0 0 4D 0 0 0 0 0 0 0 ]
11:46:40.220 -> Sending: [53 55 50 4C 41 ]
11:46:40.220 -> Channel(0) value changed to 76
11:46:40.287 -> Channel(0) value changed to 75
11:46:40.287 -> Sending: [53 55 50 4C 41 C F 0 0 0 64 0 0 0 9 0 0 0 0 4B 0 0 0 0 0 0 0 ]
11:46:40.287 -> Sending: [53 55 50 4C 41 ]
11:46:40.320 -> Channel(0) value changed to 74
11:46:40.370 -> Channel(0) value changed to 73
11:46:40.404 -> Sending: [53 55 50 4C 41 C 10 0 0 0 64 0 0 0 9 0 0 0 0 49 0 0 0 0 0 0 0 ]
11:46:40.404 -> Sending: [53 55 50 4C 41 ]
11:46:40.437 -> Channel(0) value changed to 72
11:46:40.487 -> Channel(0) value changed to 71
11:46:40.487 -> Sending: [53 55 50 4C 41 C 11 0 0 0 64 0 0 0 9 0 0 0 0 47 0 0 0 0 0 0 0 ]
11:46:40.537 -> Sending: [53 55 50 4C 41 ]
11:46:40.537 -> Channel(0) value changed to 70
11:46:40.570 -> Channel(0) value changed to 69
11:46:40.604 -> Sending: [53 55 50 4C 41 C 12 0 0 0 64 0 0 0 9 0 0 0 0 45 0 0 0 0 0 0 0 ]
11:46:40.604 -> Sending: [53 55 50 4C 41 ]
11:46:40.637 -> Channel(0) value changed to 68
11:46:40.683 -> Channel(0) value changed to 67
11:46:40.720 -> Sending: [53 55 50 4C 41 C 13 0 0 0 64 0 0 0 9 0 0 0 0 43 0 0 0 0 0 0 0 ]
11:46:40.720 -> Sending: [53 55 50 4C 41 ]
11:46:40.720 -> Channel(0) value changed to 66
11:46:40.771 -> Channel(0) value changed to 65
11:46:40.805 -> Sending: [53 55 50 4C 41 C 14 0 0 0 64 0 0 0 9 0 0 0 0 41 0 0 0 0 0 0 0 ]
11:46:40.805 -> Sending: [53 55 50 4C 41 ]
11:46:40.837 -> Channel(0) value changed to 64
11:46:40.887 -> Channel(0) value changed to 63
11:46:40.937 -> Sending: [53 55 50 4C 41 C 15 0 0 0 64 0 0 0 9 0 0 0 0 3F 0 0 0 0 0 0 0 ]
11:46:40.937 -> Sending: [53 55 50 4C 41 ]
11:46:40.937 -> Channel(0) value changed to 62
11:46:40.974 -> Channel(0) value changed to 61
11:46:41.019 -> Sending: [53 55 50 4C 41 C 16 0 0 0 64 0 0 0 9 0 0 0 0 3D 0 0 0 0 0 0 0 ]
11:46:41.019 -> Sending: [53 55 50 4C 41 ]
11:46:41.019 -> Channel(0) value changed to 60
11:46:41.088 -> Channel(0) value changed to 59
11:46:41.137 -> Sending: [53 55 50 4C 41 C 17 0 0 0 64 0 0 0 9 0 0 0 0 3B 0 0 0 0 0 0 0 ]
11:46:41.137 -> Sending: [53 55 50 4C 41 ]
11:46:41.137 -> Channel(0) value changed to 58
11:46:41.174 -> Channel(0) value changed to 57
11:46:41.220 -> Sending: [53 55 50 4C 41 C 18 0 0 0 64 0 0 0 9 0 0 0 0 39 0 0 0 0 0 0 0 ]
11:46:41.220 -> Sending: [53 55 50 4C 41 ]
11:46:41.220 -> Channel(0) value changed to 56
11:46:41.288 -> Channel(0) value changed to 55
11:46:41.337 -> Sending: [53 55 50 4C 41 C 19 0 0 0 64 0 0 0 9 0 0 0 0 37 0 0 0 0 0 0 0 ]
11:46:41.337 -> Sending: [53 55 50 4C 41 ]
11:46:41.337 -> Channel(0) value changed to 54
11:46:41.370 -> Channel(0) value changed to 53
11:46:41.421 -> Sending: [53 55 50 4C 41 C 1A 0 0 0 64 0 0 0 9 0 0 0 0 35 0 0 0 0 0 0 0 ]
11:46:41.421 -> Sending: [53 55 50 4C 41 ]
11:46:41.421 -> Channel(0) value changed to 52
11:46:41.470 -> Channel(0) value changed to 51
11:46:41.517 -> Sending: [53 55 50 4C 41 C 1B 0 0 0 64 0 0 0 9 0 0 0 0 33 0 0 0 0 0 0 0 ]
11:46:41.517 -> Sending: [53 55 50 4C 41 ]
11:46:41.555 -> Channel(0) value changed to 50
11:46:41.603 -> Channel(0) value changed to 49
11:46:41.603 -> Sending: [53 55 50 4C 41 C 1C 0 0 0 64 0 0 0 9 0 0 0 0 31 0 0 0 0 0 0 0 ]
11:46:41.603 -> Sending: [53 55 50 4C 41 ]
11:46:41.637 -> Channel(0) value changed to 48
11:46:41.670 -> Channel(0) value changed to 47
11:46:41.720 -> Sending: [53 55 50 4C 41 C 1D 0 0 0 64 0 0 0 9 0 0 0 0 2F 0 0 0 0 0 0 0 ]
11:46:41.720 -> Sending: [53 55 50 4C 41 ]
11:46:41.720 -> Channel(0) value changed to 46
11:46:41.771 -> Channel(0) value changed to 45
11:46:41.820 -> Sending: [53 55 50 4C 41 C 1E 0 0 0 64 0 0 0 9 0 0 0 0 2D 0 0 0 0 0 0 0 ]
11:46:41.820 -> Sending: [53 55 50 4C 41 ]
11:46:41.820 -> Channel(0) value changed to 44
11:46:41.870 -> Channel(0) value changed to 43
11:46:41.920 -> Sending: [53 55 50 4C 41 C 1F 0 0 0 64 0 0 0 9 0 0 0 0 2B 0 0 0 0 0 0 0 ]
11:46:41.920 -> Sending: [53 55 50 4C 41 ]
11:46:41.920 -> Channel(0) value changed to 42
11:46:41.970 -> Channel(0) value changed to 41
11:46:42.003 -> Sending: [53 55 50 4C 41 C 20 0 0 0 64 0 0 0 9 0 0 0 0 29 0 0 0 0 0 0 0 ]
11:46:42.003 -> Sending: [53 55 50 4C 41 ]
11:46:42.037 -> Channel(0) value changed to 40
11:46:42.070 -> Channel(0) value changed to 39
11:46:42.120 -> Sending: [53 55 50 4C 41 C 21 0 0 0 64 0 0 0 9 0 0 0 0 27 0 0 0 0 0 0 0 ]
11:46:42.120 -> Sending: [53 55 50 4C 41 ]
11:46:42.120 -> Channel(0) value changed to 38
11:46:42.170 -> Channel(0) value changed to 37
11:46:42.204 -> Sending: [53 55 50 4C 41 C 22 0 0 0 64 0 0 0 9 0 0 0 0 25 0 0 0 0 0 0 0 ]
11:46:42.253 -> Sending: [53 55 50 4C 41 ]
11:46:42.253 -> Channel(0) value changed to 36
11:46:42.287 -> Channel(0) value changed to 35
11:46:42.320 -> Sending: [53 55 50 4C 41 C 23 0 0 0 64 0 0 0 9 0 0 0 0 23 0 0 0 0 0 0 0 ]
11:46:42.320 -> Sending: [53 55 50 4C 41 ]
11:46:42.320 -> Channel(0) value changed to 34
11:46:42.370 -> Channel(0) value changed to 33
11:46:42.407 -> Sending: [53 55 50 4C 41 C 24 0 0 0 64 0 0 0 9 0 0 0 0 21 0 0 0 0 0 0 0 ]
11:46:42.407 -> Sending: [53 55 50 4C 41 ]
11:46:42.453 -> Channel(0) value changed to 32
11:46:42.487 -> Channel(0) value changed to 31
11:46:42.520 -> Sending: [53 55 50 4C 41 C 25 0 0 0 64 0 0 0 9 0 0 0 0 1F 0 0 0 0 0 0 0 ]
11:46:42.520 -> Sending: [53 55 50 4C 41 ]
11:46:42.520 -> Channel(0) value changed to 30
11:46:42.570 -> Channel(0) value changed to 29
11:46:42.603 -> Sending: [53 55 50 4C 41 C 26 0 0 0 64 0 0 0 9 0 0 0 0 1D 0 0 0 0 0 0 0 ]
11:46:42.637 -> Sending: [53 55 50 4C 41 ]
11:46:42.637 -> Channel(0) value changed to 28
11:46:42.670 -> Channel(0) value changed to 27
11:46:42.708 -> Sending: [53 55 50 4C 41 C 27 0 0 0 64 0 0 0 9 0 0 0 0 1B 0 0 0 0 0 0 0 ]
11:46:42.754 -> Sending: [53 55 50 4C 41 ]
11:46:42.754 -> Channel(0) value changed to 26
11:46:42.804 -> Channel(0) value changed to 25
11:46:42.853 -> Sending: [53 55 50 4C 41 C 28 0 0 0 64 0 0 0 9 0 0 0 0 19 0 0 0 0 0 0 0 ]
11:46:42.853 -> Sending: [53 55 50 4C 41 ]
11:46:42.853 -> Channel(0) value changed to 24
11:46:42.886 -> Channel(0) value changed to 23
11:46:42.937 -> Sending: [53 55 50 4C 41 C 29 0 0 0 64 0 0 0 9 0 0 0 0 17 0 0 0 0 0 0 0 ]
11:46:42.937 -> Sending: [53 55 50 4C 41 ]
11:46:42.937 -> Channel(0) value changed to 22
11:46:42.987 -> Channel(0) value changed to 21
11:46:43.037 -> Sending: [53 55 50 4C 41 C 2A 0 0 0 64 0 0 0 9 0 0 0 0 15 0 0 0 0 0 0 0 ]
11:46:43.037 -> Sending: [53 55 50 4C 41 ]
11:46:43.037 -> Channel(0) value changed to 20
11:46:43.070 -> Channel(0) value changed to 19
11:46:43.116 -> Sending: [53 55 50 4C 41 C 2B 0 0 0 64 0 0 0 9 0 0 0 0 13 0 0 0 0 0 0 0 ]
11:46:43.116 -> Sending: [53 55 50 4C 41 ]
11:46:43.154 -> Channel(0) value changed to 18
11:46:43.204 -> Channel(0) value changed to 17
11:46:43.254 -> Sending: [53 55 50 4C 41 C 2C 0 0 0 64 0 0 0 9 0 0 0 0 11 0 0 0 0 0 0 0 ]
11:46:43.254 -> Sending: [53 55 50 4C 41 ]
11:46:43.254 -> Channel(0) value changed to 16
11:46:43.304 -> Channel(0) value changed to 15
11:46:43.353 -> Sending: [53 55 50 4C 41 C 2D 0 0 0 64 0 0 0 9 0 0 0 0 F 0 0 0 0 0 0 0 ]
11:46:43.353 -> Sending: [53 55 50 4C 41 ]
11:46:43.353 -> Channel(0) value changed to 14
11:46:43.387 -> Channel(0) value changed to 13
11:46:43.438 -> Sending: [53 55 50 4C 41 C 2E 0 0 0 64 0 0 0 9 0 0 0 0 D 0 0 0 0 0 0 0 ]
11:46:43.438 -> Sending: [53 55 50 4C 41 ]
11:46:43.438 -> Channel(0) value changed to 12
11:46:43.488 -> Channel(0) value changed to 11
11:46:43.539 -> Sending: [53 55 50 4C 41 C 2F 0 0 0 64 0 0 0 9 0 0 0 0 B 0 0 0 0 0 0 0 ]
11:46:43.539 -> Sending: [53 55 50 4C 41 ]
11:46:43.539 -> Channel(0) value changed to 10
11:46:43.587 -> Channel(0) value changed to 9
11:46:43.624 -> Sending: [53 55 50 4C 41 C 30 0 0 0 64 0 0 0 9 0 0 0 0 9 0 0 0 0 0 0 0 ]
11:46:43.624 -> Sending: [53 55 50 4C 41 ]
11:46:43.624 -> Channel(0) value changed to 8
11:46:43.670 -> Channel(0) value changed to 7
11:46:43.741 -> Sending: [53 55 50 4C 41 C 31 0 0 0 64 0 0 0 9 0 0 0 0 7 0 0 0 0 0 0 0 ]
11:46:43.741 -> Sending: [53 55 50 4C 41 ]
11:46:43.741 -> Channel(0) value changed to 6
11:46:43.787 -> Channel(0) value changed to 5
11:46:43.842 -> Sending: [53 55 50 4C 41 C 32 0 0 0 64 0 0 0 9 0 0 0 0 5 0 0 0 0 0 0 0 ]
11:46:43.842 -> Sending: [53 55 50 4C 41 ]
11:46:43.842 -> Channel(0) value changed to 4
11:46:43.887 -> Channel(0) value changed to 3
11:46:43.920 -> Sending: [53 55 50 4C 41 C 33 0 0 0 64 0 0 0 9 0 0 0 0 3 0 0 0 0 0 0 0 ]
11:46:43.954 -> Sending: [53 55 50 4C 41 ]
11:46:43.954 -> Channel(0) value changed to 2
11:46:44.003 -> Channel(0) value changed to 1
11:46:44.037 -> Sending: [53 55 50 4C 41 C 34 0 0 0 64 0 0 0 9 0 0 0 0 1 0 0 0 0 0 0 0 ]
11:46:44.037 -> Sending: [53 55 50 4C 41 ]
11:46:44.037 -> Channel(0) value changed to 0
11:46:44.143 -> Sending: [53 55 50 4C 41 C 35 0 0 0 64 0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 ]
11:46:44.143 -> Sending: [53 55 50 4C 41 ]
11:47:04.051 -> Sending: [53 55 50 4C 41 C 36 0 0 0 28 0 0 0 10 0 0 0 39 0 0 0 0 0 0 0 17 18 B 0 0 0 0 0 ]
11:47:04.099 -> Sending: [53 55 50 4C 41 ]
11:47:04.099 -> Received: [53 55 50 4C 41 C 4 0 0 0 32 0 0 0 10 0 0 0 18 F 8C 5F 0 0 0 0 AD 44 3 0 0 0 0 0 53 55 50 4C 41 ]
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

ndz paź 18, 2020 10:08 am

Kolejna rzecz:

Kod: Zaznacz cały

#include <supla/clock/clock.h>
Supla::Clock suplaClock;
int supla_time_h;
int supla_time_min;
w setup dodałem:

Kod: Zaznacz cały

supla_time_h = suplaClock.getHour();
supla_time_min = suplaClock.getMin();
w GUI:

Kod: Zaznacz cały

content += "<font color=black>CZAS SERWERA (" + String(supla_time_h) + ":" + String(supla_time_min) + ")</font><br>";
Pomimo połączenia z serwerem cały czas wyświetla się (0:0)

ale kiedy zamieniłem na:

Kod: Zaznacz cały

content += "<font color=black>CZAS SERWERA (" + String(suplaClock.getHour()) + ":" + String(suplaClock.getMin()) + ")</font><br>";
zaczęły pokazywać się kolejne minuty.

Co należy zrobić, aby pokazał się aktualny czas pobrany z serwera?
Awatar użytkownika
klew
Posty: 1328
Rejestracja: czw cze 27, 2019 12:16 pm

ndz paź 18, 2020 6:28 pm

lukfud pisze:
ndz paź 18, 2020 10:08 am
Kolejna rzecz:
Poprawiłem pierwszy post. Zegarek trzeba dodać trochę inaczej. Sam zapomniałem jak to się robiło, gdy pisałem ten post ;)

Natomiast nie możesz zrobić:

Kod: Zaznacz cały

   int zmienna = funkcja();
i oczekiwać, że zmienna będzie się aktualizować. "zmienna" przechowuje stan funkcja() z momentu wywołania funkcji. Więc, jeśli chcesz pobrać aktualny czas, to musisz ponownie wywołać funkcję.
lukfud
Posty: 570
Rejestracja: czw lis 23, 2017 11:33 pm
Lokalizacja: Warszawa

ndz paź 18, 2020 7:24 pm

klew pisze:
ndz paź 18, 2020 6:28 pm
Poprawiłem pierwszy post. Zegarek trzeba dodać trochę inaczej. Sam zapomniałem jak to się robiło, gdy pisałem ten post ;)
Dziękuję, teraz pokazuje się czas z serwera.
Na svr30 pokazuje dokładną godzinę, a na dockerze jest cofnięta o 2h.

Czy ktoś wie może jak zmienić strefę czasową w kontenerze supla-server?

Co do rolet, masz już może pomysł co się tam dzieje?
ODPOWIEDZ

Wróć do „Arduino IDE”