update 数据采集接口
This commit is contained in:
parent
1155dac72a
commit
273f5d5197
|
@ -23,7 +23,7 @@ class DataCollectController extends BaseApiController
|
|||
$device = explode('_', $parmas['topic']); // 命名规则:topic_deviceid deviceid为设备主键id
|
||||
$data = [
|
||||
'land_id' => $land[3],
|
||||
'topic'=>$device[1],
|
||||
'device_id'=>$device[1],
|
||||
'qos'=>$parmas['qos'],
|
||||
'wind_speed' => $payload['wind_speed'],
|
||||
'wind_direction' => $payload['wind_direction'],
|
||||
|
|
Loading…
Reference in New Issue