Using the K64 & MQX to post data to an external website

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using the K64 & MQX to post data to an external website

1,411 次查看
rParker
Contributor I

I am working on a prototype data logger using the FRDM-K64F that takes readings from local sensors and then posts these readings to an external web server (thingspeak.com) so that they can be stored and displayed over time. Currently I can collect the sensor readings and display them on a local webpage using the MQX webserver function but I am unable to get my board to talk to the external server.

标签 (1)
标记 (3)
0 项奖励
回复
2 回复数

1,107 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Richard Parker:

If I understand correctly you want to implement an HTTP client with the K64 using HTTP post request.

I don't know of any exact implementation like that to log data, but from a general perspective this is how you should do it:

- Use the DNS system from RTCS TCP/IP stack to get the IP address of the server.

- Implement the http client to use POST and GET requests. There is an application note about using an http client to send or receive data from a Twitter account. This appnote is very old but the theory should be valuable for your application:

AN4417

And you can also download the software package as reference:

AN4417SW

Regards!

Jorge Gonzalez

0 项奖励
回复

1,107 次查看
rParker
Contributor I

Thanks for pointing me in this direction. I will have a look at the application note.

Richard

0 项奖励
回复