I use the APi by python:
chirpstack-api==4.3.0
chripstack-server = chirpstack 4.3.0
THe APi is used for register/unregister devices, set the keys, etc… It works well.
I am not familiar with grpc, but with some samples and reading the .proto files, we succeed to do basic operation.
But I am stuck, because I want to set the field bool skip_f_cnt_check to False by API
as decribe in
[chirpstack-api/device.proto at master · brocaar/chirpstack-api · GitHub](https://protobuf/as/external/api/device.proto
This field does not seems to be present by doing this :
from chirpstack_api import api
dev = api.Device()
dev.dev_eui = dev_eui
dev.name = name
dev.application_id = application_id
dev.device_profile_id = device_profile_id
# skip_fcnt_check bool Skip frame-counter checks (this is insecure, but could be helpful for debugging).
dev.skip_f_cnt_check = True # <= Failure
I have tried to access to the field, by getDeviceRequest()
channel = grpc.insecure_channel(self.server)
client = api.DeviceServiceStub(channel)
req = api.GetDeviceRequest()
req.dev_eui = dev_eui
try:
resp = client.Get(req, metadata=self.auth_token)
...
...
resp.device # OK
dev_eui: "0080000000014a38" name: "nom par defaut" application_id: "00000000-0000-0000-0000-000000000003" device_profile_id: "351973a3-f5a5-4697-ae51-d18cd7acacfb"
resp.device.is_disabled #OK
False
resp.device.tags # OK
{}
resp.device.variables # OK
{}
resp.device.is_skip_f_cnt_check # ERROR
Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: is_skip_f_cnt_check
resp.device.skip_f_cnt_check # ERROR
Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: is_skip_f_cnt_check
I don’t know how to solve it.