MajorTwip / EscapeConnect

1 stars 1 forks source link

UC05 - Gerät upgraden - Backend #26

Closed ludovicrenevey closed 4 years ago

ludovicrenevey commented 4 years ago

Ein Gerät soll ein Firmwareupgrade erhalten. Der Admin wird die neue JSON-Datei auf EscapeConnect hochladen.

ludovicrenevey commented 4 years ago

@MajorTwip : I tried to implement a first part but I need your help on that one. I need know to start writing the tests for the method getPanels().

What I do not understand is why the upgrade method must have a class/object upgradeBodyBean as a parameter? How can I simulate this with Postman? Or can I simply use a bin file? But where can I find one.

Furthermore, I do not understand how they do upgrade the device in this example: https://github.com/homieiot/homie-esp8266/blob/develop/scripts/ota_updater/ota_updater.py

ludovicrenevey commented 4 years ago

@MajorTwip Have you written this "Compare Name of Fw with actual, if different return 4xx or update when "forced" is set"?

Is this done?