优化代码
This commit is contained in:
@@ -64,7 +64,7 @@ func (c *ChirpStackTransport) Send(address string, payload []byte) (*transport.S
|
||||
// - WithQueueItemDevEui 指定目标设备的 EUI。
|
||||
// - WithBody 设置请求体。
|
||||
params := device_service.NewDeviceServiceEnqueueParams().
|
||||
WithTimeout(5 * time.Second). // TODO 这里应该从配置文件里读
|
||||
WithTimeout(time.Duration(c.config.APITimeout) * time.Second).
|
||||
WithQueueItemDevEui(address).
|
||||
WithBody(body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user