-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add gpio mappers for huawei atlas200DKOrsline merge #93
base: main
Are you sure you want to change the base?
Conversation
The image cache is applied in the lib library for transferring images, which needs to be released, otherwise there will be a memory leak 2.Modify data update strategy When the device's desire value is inconsistent with the report value, edgecore will re-deliver the desire value. This judgment will cause the desire value to fail to be delivered, because the desire value saved by the mapper has not changed. Signed-off-by: zhangyanhua <zhangyanhua@huawei.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
64fb217
to
42bd543
Compare
please fix |
a8a5e89
to
bd34b5f
Compare
Signed-off-by: zhangyanhua <zhangyanhua@huawei.com>
@@ -293,6 +293,7 @@ func (gigEClient *GigEVisionDevice) PostImage(DeviceSN string) { | |||
go func() { | |||
var buffer []byte | |||
var bufferHdr = (*reflect.SliceHeader)(unsafe.Pointer(&buffer)) | |||
defer C.free_image((**C.char)(unsafe.Pointer(&imageBuffer))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This func can free the memory after the func ends and avoid the problem of memory leak
WORKDIR /usr/local/bin | ||
COPY ./res /usr/local/res | ||
COPY ./bin /usr/local/bin | ||
#RUN echo "HwHiAiUser:x:1000:1000::/home/HwHiAiUser:" >> /etc/passwd ; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is 'HwHiAiUser’ used for atlas200DK?
- edge-a200-00 #pls give your edge node name | ||
propertyVisitors: | ||
- propertyName: red-power-status | ||
collectCycle: 10000000000 #Mapper 从设备收集数据的频率 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the comment in English
@@ -0,0 +1,20 @@ | |||
-----BEGIN CERTIFICATE----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure if we should provide the .crt and .key file here.
add gpio mappers for huawei atlas200DK