update 数据采集接口

This commit is contained in:
chenbo 2023-12-13 13:41:49 +08:00
parent 1155dac72a
commit 273f5d5197
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class DataCollectController extends BaseApiController
$device = explode('_', $parmas['topic']); // 命名规则topic_deviceid deviceid为设备主键id $device = explode('_', $parmas['topic']); // 命名规则topic_deviceid deviceid为设备主键id
$data = [ $data = [
'land_id' => $land[3], 'land_id' => $land[3],
'topic'=>$device[1], 'device_id'=>$device[1],
'qos'=>$parmas['qos'], 'qos'=>$parmas['qos'],
'wind_speed' => $payload['wind_speed'], 'wind_speed' => $payload['wind_speed'],
'wind_direction' => $payload['wind_direction'], 'wind_direction' => $payload['wind_direction'],