Hi, I’ve generated gRPC code for Chirpstack api protos and successfully imported to my C++ project.
I need to send a downlink message to LoRa nodes via gRPC, the same way the python example does (I mean, this one https://www.chirpstack.io/application-server/api/python-examples/#enqueue-downlink )
That’s what I’ve mapped to C++ so far
// add message to queue
api::EnqueueDeviceQueueItemRequest toSend;
// fill in message metadata and data
auto message = toSend.device_queue_item();
message.set_confirmed(false);
message.set_data((const char *) &sent);
message.set_f_port(10);
message.set_dev_eui(loranode_deveui);
How do I enqueue the message and send it (possibly synchronously)?