vovagorodok / ArduinoBleOTA

Upload firmware over Bluetooth
MIT License
19 stars 7 forks source link

enable/disable upload feature understanding #25

Closed sdetweil closed 10 months ago

sdetweil commented 1 year ago

so, I want to disable upload until a later time.

I call begin(.... enableUpload:false)

later I want to enable it

so I call ArduinoBleOTA.enableUpload();

but my BEGIN transmission get a status 0x06 back,

define UPLOAD_DISABLED 0x06

if I change the begin(.... enableUpload:true) then my BEGIN transmission is accepted

am I using it the right way?

vovagorodok commented 1 year ago

Hmm, begin(.... enableUpload:false) and than ArduinoBleOTA.enableUpload(); should work. Ill check it

vovagorodok commented 1 year ago

Checked. Works correctly begin(.... enableUpload:false) and than ArduinoBleOTA.enableUpload();. It only changes one boolean flag, can't understand where can be issue from Your side. Do you have latest ArduinoBleOTA version?