CRG in Discussions
上次活动时间: 2024-9-30

Hi everyone, I'm working on a school project where I need to send sensor data from my Arduino to a Power BI REST API using ThingsHTTP. I've been trying to get this to work, but I'm running into errors like this: {"error":{"code":"InvalidRequest","message":"Error parsing request for dataset sobe_wowvirtualserver|a7b68fb5-533b-471f-a5da-3bdd6746ee16: Conversion error on column '<pi>pH</pi>': <pi>Input string was not in a correct format.</pi>"}} I'm a beginner with this, and I'm not sure what I'm doing wrong. What steps should I take to resolve this issue? Also, does anyone know the correct format for an HTTP request body when sending dynamic sensor data? This is the body format I'm trying to send to Power BI: [ { "pH": 98.6, "TDS": 98.6, "turbidity": 98.6, "temperature": 98.6 } ] Any advice on how to construct the HTTP body with values that change over time would be greatly appreciated! Thanks in advance!" Need Help with School Project: Sending Data from ThingsHTTP to Power BI REST API I suggest using webwrite and webread to send data to an external API. Instead of using thingHTTP, I suggest using MATLAB code that is triggered by a write to a channel (use react) or runs on a regular schedule (use time control.) You can build the POST request body or querry string parameters using variables to be able to send dynamic data. If you start on that route, feel free to describe how it does here and we will try to help futher. Make sure to show a code sample. power bi api thingshttp

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.