未验证 提交 4a988ea2 编写于 作者: L liumanduo 提交者: GitHub

Merge branch 'IoTSharp:master' into master

......@@ -33,6 +33,7 @@ namespace IoTSharp.Storage
if (_taos.State != System.Data.ConnectionState.Open) _taos.Open();
_taos.CreateCommand($"CREATE DATABASE IF NOT EXISTS {_taosBuilder.DataBase}").ExecuteNonQuery();
_taos.ChangeDatabase(_taosBuilder.DataBase);
_taos.CreateCommand($"USE {_taosBuilder.DataBase}").ExecuteNonQuery();
_taos.CreateCommand($"CREATE TABLE IF NOT EXISTS telemetrydata (ts timestamp,value_type tinyint, value_boolean bool, value_string binary(10240), value_long bigint,value_datetime timestamp,value_double double) TAGS (deviceid binary(32),keyname binary(64));")
.ExecuteNonQuery();
return Task.FromResult(true);
......@@ -235,4 +236,4 @@ namespace IoTSharp.Storage
return (result, telemetries);
}
}
}
\ No newline at end of file
}
......@@ -8,7 +8,7 @@ sidebar_position: 5
浏览器访问 `http://localhost:8086/`
注意, 地址取决于你安装地址, 或者容器的映射地址。 一些情况下遥测数据能存储在InfluxDB之前, 你可能需要手动创建taken等填写到配置文件中。
注意, 地址取决于你安装地址, 或者容器的映射地址。 一些情况下遥测数据能存储在InfluxDB之前, 你可能需要手动创建token等填写到配置文件中。
![influxdb数据](/img/iotsharp/influxdb-data.png)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册