0 votes
asked in ESPaper by (180 points)

https://thingpulse.com/product/espaper-lite-kit-wifi-epaper-display/
https://github.com/ThingPulse/espaper-client

Hi,
I recently purchased 2.9 "ESPaper Lite Kit.
After compiling and uploading an "espaper-client", the device has connected to my WiFi network, but with the authorization on the server www.espaper.com, the display shows:

"Sorry, device registration failed. Please ensure the device has access to" http://www.espaper.com" and try again. Else contact ThingPulse Support and provide the device MAC address: 68:C6:3A:C8:33:74”.

Serial console:

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

Is I doing something wrong? Or maybe it's a matter of server authorization? 
I will be grateful for your help. 

Have a good day!

commented by (9.6k points)
edited by
{"macAddress": "68:C6:3A:C8:33:74", "deviceType": ""Espaper29Bw"", "timeZone": "UTC"}  looks fishy as the value for `deviceType` has some extra "" around. We'll take a look. It's likely a bug that was introduced in the last few days.

1 Answer

+1 vote
answered by (180 points)

Ok, the solution was to remove the quotes in "settings.h" in the line:

#define DEVICE_TYPE "Espaper29Bw"

Properly / works:

#define DEVICE_TYPE Espaper29Bw

@Marcel - Thank you for your help!

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...