owarz / sense

hello sense sleep tracker local api server and homebridge plugin.
7 stars 0 forks source link

raw-body is not readable after fixing proto loading #4

Open jhansche opened 1 day ago

jhansche commented 1 day ago

When fixing the proto package from #3, and then booting up the Sense device, there is an error reading from the raw body due to some Express+await issues.

The fix described at StackOverflow says to replace await with then(), and that appears to make a little progress, however now it fails to decrypt (for my device anyway).

It's possible that there could be some encryption differences between my device and yours, as mine was one of the early v1 devices (from KickStarter). I understand that there are multiple hardware revisions since mine. My device is reporting x-hello-sense-mfw: 11A1 and x-hello-sense-tfw: 1.0.3.