Hello
i want add #include <cpr/cpr.h> to Arduino IDE but it say cpr/cpr.h valid library i use windows 10
can you help me ?
Please post your entire sketch along with any error messages.
Is CPR a library? I am not familiar with it.
this the code i want add to my arduino nano IoT
#include <iostream>
#include <string>
#include <iostream>
#include <cpr/cpr.h>
using namespace std;
int main()
{
// Update these variable with our sensor value
int age = 20 ;
int heart_beat = 20 ;
int oxygen = 20 ;
int gender = 1 ;
// Convert int vales as string
string age_str = to_string(age) ;
string hb_str = to_string(heart_beat) ;
string oxy_str = to_string(oxygen) ;
string gen_str = to_string(gender) ;
string comma = "," ;
string coln = ":";
// Basic URL
string URL = "http://x.x.x.x:5000/model/";
// Develop Main URL for API call
string final_url = URL+"age"+coln+age_str+comma+"hb"+coln+hb_str+comma+"oxy"+coln+oxy_str+comma+"gen"+coln+gen_str ;
// Calling GET Request using CPR Lib
auto response = cpr::Get(cpr::Url{final_url});
std::cout << response.text << std::endl;
cout << final_url ;
return 0;
}
i find this
i don't undertand it very will
i download the file from and try add it in anduino but it say
cpr/cpr.h valid library
can you help ?
any help?
It is not an arduino library. Further, it’s apparently a wrapper for another library (libcurl) that is also not an arduino library.
The chances that a non-arduino networking library will work with the limited resources of an arduino are very small.
is there similar arduino library do same job ?
What is it you want it to do? Libcurl is huge; supporting MANY file transfer protocols. Such a complete library is unlikely to come close to fitting on an arduino - you need to pick something more specialized.
Hello
I have Machine learning tensorflow website i can manual enter the age,gender, heart rate, spo2 like in this photo:
I want the arduino send the age,gender, heart rate, spo2 automatically and get the results back to arduino how can i do it ?
Hello
I have this link working
Xx.xx.xx.xx:5000/model/age:63,hb:150,oxy:125,gen:1
When click it give results yes or no
Is there any way to make this link work in arduino?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
