Koenkk / zigbee-OTA

A collection of Zigbee OTA files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send binary with ota cluster.

vedatbotuk opened this issue · comments

I want send a binary, which has to be wrote on the esp32h2 zigbee-device.
The example works.
When I send via zigbee2mqtt it doesn't work. I think my binnary does not correspond to the ota properties.

Is there any other way I can send this binary via ota cluster?

node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
    at new NodeError (node:internal/errors:387:5)
    at boundsError (node:internal/buffer:84:11)
    at Buffer.readUInt16LE (node:internal/buffer:243:5)
    at Object.parseImage (/home/vedat/zigbee-OTA/lib/ota.js:17:34)
    at main (/home/vedat/zigbee-OTA/scripts/add.js:95:28)
    at Object.<anonymous> (/home/vedat/zigbee-OTA/scripts/add.js:167:1)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
  code: 'ERR_BUFFER_OUT_OF_BOUNDS'
}