Hello,
I run a local server on my pi 4 and all works well with web-server, i manage to add devices and see the data they are sending.
Now I need 2 things:
1st- need to send payload to device through python script.
It tried the following example:
https://www.chirpstack.io/docs/chirpstack/api/python-examples.html
but i got the following error message code:
```
Traceback (most recent call last):
File "/home/pi/hydrosafe/python_test.py", line 38, in <module>
resp = client.Enqueue(req, metadata=auth_token)
File "/home/pi/.local/lib/python3.9/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/home/pi/.local/lib/python3.9/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNIMPLEMENTED
details = "unknown method Enqueue for service api.DeviceService"
debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:8080 {grpc_message:"unknown method Enqueue for service api.DeviceService", grpc_status:12, created_time:"2023-02-24T20:12:00.306978098-03:00"}"
>
```
I tried searching for how to solve, but i think is somthing to do with gRPC and i don't understand it.
I don't have time to study it, as i need to deliver a solution assap. If some1 can help me with this.
2nd- I need a python script to receive every message from lowaran devices, to process them and do somthing with the data.
How can i make my python script received the registered lorawan devices data?
If some1 can post an example code i would appreciate it.
Thank you for your time