-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Help with grpc error handling and time to receive device update event #1090
Comments
The errors code that could be returned are defined by grpc codes and our extended codes. The device for the action is specified in
Plgd doesn't know if a resource is read-only, so the request is sent to the device, and the device needs to return an error code. Additionally, the body can contain data that describes the error. In this case, the error code will be set in
This depends on various factors and use cases:
|
Hey jkralik, many thanks for the answer. |
@ipzago To use
|
@jkralik I performed some local tests changing both values to 10s and 5s and it seems to make no difference. I mounted the volume as indicated and confirmed that file was with right values on /data. Is there any other config that we could try? |
@ipzago Pls could you look to coap-gw logs in the file There will be one INFO log (mostly second line) similar to |
Hello,
We are trying to improve our PLGD usage and some questions appeared. Could you help us?
Talking about error, is there any place that we could consult possible errors returned from PLGD?
We're trying to evaluate better the errors returned from grpc calls (get, update, create and delete)
and for this we need to know possible errors and the best way to identify them without need to compare strings.
Should grpc attempt to update a read only resource return error? We were expecting it but no error is received.
E.g.: We tried to perform grpc update of module's /cfg access identifier and no error was received, just the
resource payload with no changes.
Sometimes, it takes seconds to receive events updating device metadata or operations of unregister/register.
Is there any timer in PLGD os DPS to check/send updates?
E.g.: In our tests, we pause or disconnect module container from network and wait for system reaction, and sometimes
it takes more than expected.
Best Regards,
Icaro
The text was updated successfully, but these errors were encountered: