# Functions
NewDevice creates a new device simulation.
NewGateway creates a new gateway, using the given MQTT client for sending and receiving.
WithAppKey sets the AppKey.
WithCommandTopicTemplate sets the command (ns > gw) topic template.
WithDevEUI sets the DevEUI.
WithDownlinkHandlerFunc sets the downlink handler func.
WithDownlinkTxAckDelay sets the delay in which the Tx Ack is returned.
WithDownlinkTxNackRate sets the rate in which Tx NAck messages are sent.
WithEventTopicTemplate sets the event (gw > ns) topic template.
WithGatewayID sets the gateway ID.
WithGateways adds the device to the given gateways.
WithJoinEUI sets the JoinEUI.
WithMQTTCertificates initializes a new MQTT client with the given CA and client-certificate files.
WithMQTTClient sets the MQTT client for the gateway.
WithMQTTCredentials initializes a new MQTT client with the given credentials.
WithOTAADelay sets the OTAA delay.
WithRandomDevNonce randomizes the OTAA DevNonce instead of using a counter value.
WithUplinkCount sets the uplink count, after which the device simulation ends.
WithUplinkInterval sets the uplink interval.
WithUplinkPayload sets the uplink payload.
WithUplinkTXInfo sets the TXInfo used for simulating the uplinks.
# Type aliases
DeviceOption is the interface for a device option.
GatewayOption is the interface for a gateway option.