当前位置:网站首页>Usage of API interface test ------ post

Usage of API interface test ------ post

2022-06-23 04:50:00 Embedded quasi white

What I use here is onenet Provided API Interface to test , Other clouds are similar , See the development documents for details , Let me show you onenet The operation of

I wrote about it before GET Methods , If you don't understand, you can read my previous articles → Portal

Prepare to operate :
1. Need to register oenent account number
2. Create a product , Because we want to get the equipment ID
3. Copy Api-key

Api-key You can see it here
 Insert picture description here

for example , My device ID This is it
 Insert picture description here

Now , Only need ApiPost Just write it like I did
 Insert picture description here

 Insert picture description here

As for how to check what data your SCM receives and what operations it performs ? At this time, we have to look at the code of the MCU
Mine is like this , Here's the picture
 Insert picture description here
At this point we click post Button , We can see stm32f103c8t6 Upper LED The state is reversed
Look at the picture below

 Insert picture description here
You can see every click post, my LED Status is negative
 Insert picture description here
 Insert picture description here
This is the full text , I didn't have a solid grasp before , Read the document for half a day , At last, we have made some progress , If you have a similar operation , You can refer to my method , If you don't understand , You can write to me , Free help you solve , I think it's OK , Pay attention to , thank you ~

原网站

版权声明
本文为[Embedded quasi white]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230022367299.html