Giter Club home page Giter Club logo

Comments (6)

enesbcs avatar enesbcs commented on June 23, 2024 1

Second beta published. memoryview is now converted to other types.
https://github.com/enesbcs/mpyeasy/releases/tag/1.0.004

from mpyeasy.

michapr avatar michapr commented on June 23, 2024 1

Is working now stable again since yesterday evening. Will tell you...

from mpyeasy.

enesbcs avatar enesbcs commented on June 23, 2024

Interesting. It looks like that "def decode_xiaomi(buf)" function tries to reach an index behind the buffer... can you narrow this error to a type of device? Lywsd02/Lywsd03/ATC... or what can be the one, who are sending smaller packages?
This function is the same as the RPIEasy version - although micropython works a bit differently.

from mpyeasy.

michapr avatar michapr commented on June 23, 2024

Have removed all devices, enabled FlowerCare only - same result (after reboot)
Have removed all devices, enabled LYWSD02 only - same result (after reboot)
Have removed all devices, enabled CGG1 only - same result (after reboot)

Same also after power on/off, tested again with LYWSD02.

LYWSD02 with connection will work (if all sniffing devices disabled)

What I have seen, if I disable all "sniffing devices" and have only the system available (or additional BLE device with connection (LYWSD02) ) - still the scan process will be started until reboot.

from mpyeasy.

enesbcs avatar enesbcs commented on June 23, 2024

Have removed all devices, enabled FlowerCare only - same result (after reboot)
Have removed all devices, enabled LYWSD02 only - same result (after reboot)
Have removed all devices, enabled CGG1 only - same result (after reboot)

I have no idea. In the next release, buffer content will be printed.

What I have seen, if I disable all "sniffing devices" and have only the system available (or additional BLE device with connection (LYWSD02) ) - still the scan process will be started until reboot.

Scan process will never stop if started, it is by design. Different tasks do not check each other to know if it is the last one running.

from mpyeasy.

enesbcs avatar enesbcs commented on June 23, 2024

13:47:25.120 -> decode xiaomi error memoryview index out of rangescan pause

The problem is that i was used micropython 1.12 on my development device, and compiled against micropython 1.13... for a reason a few API changed in between.. and now memoryview type returnes some places, which is a major headache to me, as behaving differently compared bytes, bytearray or simple arrays.

from mpyeasy.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.