Java gRPC device creation missing OTAA

Hello everybody,

I’m working with the chirpstack-api 4.5.1 library for java.

I’m able to create a device, gateway, application, device profile ecc…

I only have an issue when creating a device, the OTAA key is missing after the succesful creation:

public void createDevice(Device device) {
        Device deviceObj = Device.newBuilder()
                .setDescription("Description from java!")

        CreateDeviceRequest deviceRequest = CreateDeviceRequest.newBuilder().setDevice(deviceObj).build();

        DeviceServiceGrpc.DeviceServiceBlockingStub stub = DeviceServiceGrpc

        stub.create(deviceRequest);"Device created!");

From the chirpstack gRPC documentation, it seems to be set with setJoinEui() method, which i’m using.

Anyone had a similar problem?


The JoinEUI is something completely different. Please refer to the LoRaWAN specification. What you are looking for is is the CreateKeys method:

This step is optional, as one might use an external join-server.

1 Like

Thanks, it worked! :grinning: :grinning: :grinning:

If I may ask, where did you get the chirpstack-api 4.5.1 library for java from ?
is it in a maven repo somewhere ?


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.