Boot sequence arrived in setup()
******** Client Version: CLIENT_VERSION ********
******** Device Type: "Espaper29Bw" ********
******** Screen Type: "EPD29" ********
Display Settings. CS: 15, RST: 2, DC: 5, BUSY: 4
Current free heap: 43880
Checking FS
WIFI_SSID = [**********]
WIFI_PASS = [**********]
UPDATE_INTERVAL_MINS = [20]
TIMEZONE = [UTC GMT0]
NTP_SERVERS = [0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org]
DEVICE_ID = []
DEVICE_SECRET = []
Loaded config
TOTAL_DEVICE_STARTS = [6]
SUCCESSFUL_DEVICE_STARTS = [0]
LAST_NTP_SYNC_TIME = [0]
STARTS_WITHOUT_NTP_SYNC = [0]
LAST_CYCLE_DURATION = [0]
ACTION_AFTER_REBOOT = [0]
Loaded data file
Saved values in data file.
Button state: 1
***Time before connecting to WiFi 1314
Reconnecting
WiFi connect..................................................192.168.1.211
NTP sync...
Current time: 1552954807
***Time before going to fetching data 8338
Free mem: 41400
Device id and/or secret are not set yet -> registering device with server now
Free mem: 41152Using secure WiFi client
[HTTP] configuring server root cert in client
MFLN supported: no
[HTTP] begin...
Connecting to www.espaper.com:443
Sending request: POST /public/devices HTTP/1.1
Host: www.espaper.com
User-Agent: ESPaperClient/1.0
Content-Type: application/json
Content-Length: 85
X-ESPAPER-CLIENT-VERSION: CLIENT_VERSION
X-ESPAPER-BATTERY: 984
X-ESPAPER-WIFI-RSSI: -69
Connection: close
{"macAddress": "68:C6:3A:C8:33:74", "deviceType": ""Espaper29Bw"", "timeZone": "UTC"}
HTTP/1.1 400 Bad Request
HTTP Code: 400
Server: Cowboy
Connection: close