influxdata / influxdb-client-php

InfluxDB (v2+) Client Library for PHP
https://influxdata.github.io/influxdb-client-php/
MIT License
150 stars 47 forks source link

WriteUDPExample cannot be used and udpPort option does not specified #152

Closed GeGeLv closed 9 months ago

GeGeLv commented 9 months ago

Exception: udpPort option does not specified in D:\phpstudy_pro\WWW\iot_jtkj\vendor\influxdata\influxdb-client-php\src\InfluxDB2\UdpWriter.php: 45 Stack trace:

0 D:\phpstudy_pro\WWW\iot_jtkj\vendor\influxdata\influxdb-client-php\src\InfluxDB2\Client.php(89): InfluxDB2\UdpWriter->__construct(Array)

1 D:\phpstudy_pro\WWW\iot_jtkj\app\admin\controller\DataApi.php(224): InfluxDB2\Client->createUdpWriter()

2 [internal function

]: app\admin\controller\DataApi->udpWriter()

3 D:\phpstudy_pro\WWW\iot_jtkj\vendor\topthink\framework\src\think\Container.php(343): ReflectionMethod->invokeArgs(Object(app\admin\controller\DataApi), Array)

4 D:\phpstudy_pro\WWW\iot_jtkj\vendor\topthink\framework\src\think\route\dispatch\Controller.php(110): think\Container->invokeReflectMethod(Object(app\admin\controller\DataApi), Object(ReflectionMethod), Array)

5 D:\phpstudy_pro\WWW\iot_jtkj\vendor\topthink\framework\src\think\Pipeline.php(59): think\route\dispatch\Controller->think\route\dispatch{closure

}(Object(app\Request))