Comments (2)
and then the next write operation overrides only first two bytes, because it does not add null terminator
It overrides 3 bytes: the buffer includes the size in it; first byte is the size, then there is data. See https://github.com/project-chip/connectedhomeip/blob/v1.3.0.0/src/app/util/ember-compatibility-functions.cpp#L863
@kkasperczyk-no what does your code for handling the external attribute write look like? If you are just memcopying the incoming data and then copying it back, it should all work (since the length will be correct at "2"), but it sounds like you are doing something different?
from connectedhomeip.
It was my mistake, I treated the string in buffer as a C-string and I haven't noticed that this is pascal string with size encoded at the first byte. I think everything is fine. This issue can be closed.
from connectedhomeip.
Related Issues (20)
- [TC-IDM-10.4] Python script has to be updated as per test plan changes
- [TC-EEVSE-2.2,2.4 & 2.5] Python script has to be updated as per the test plan changes
- [TC-OPCREDS-3.1] - Python Test case failed during PASE Reconnection
- [Platform] [Zephyr] Basic example to test Zephyr platform
- [Tooling] [chip-cert] CD certs are not properly generated and have encoding errors HOT 2
- [Feature] Init mLastUsedNodeId from chip config file
- [Feature] Implement feedback channel for not applicable python test cases
- [BUG] [DRLK] Adding or modifying credential from different fabric that creatorFabric of user/cred does not fail as expected
- [1.3] Apk Size of Android app is over 500 Mb
- [Laundry Washer Mode] Sample app(All-cluster-app) has to be updated by removing the provisional Attributes.
- [CERT-TEST-FAILURE][ TC-ICDM-2.1] - Python script Failed HOT 1
- [Dish Washer Mode] Sample app(All-cluster-app) has to be updated by removing the provisional Attributes
- [Refrigerator And Temperature Controlled Cabinet Mode] Sample app(All-cluster-app) has to be updated by removing the provisional Attributes.
- [BUG] [Python][Controller] Creating multiple simulated controllers cause not possible to commission over BLE
- [1.3] BDX Transfers are limited by hard timer, low throughput
- IM should support full decoupling from ember framework once a full data model implementation is available
- Version validation failed when trying to install CHIP REPL
- [BUG] Fix TestSystemPacketBuffer.CheckNew test on ESP32
- [Android] Use MEI char array attributes
- Create followup negative test here
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectedhomeip.