简体   繁体   English

如何在没有 json 的情况下发送 Http Post 请求?

[英]How to send a Http Post request without json?

I am building a project on vibration monitoring using arduino, where the acceleration data along 3 axis should be uploaded to server using http post request.我正在使用 arduino 构建一个关于振动监控的项目,其中应使用 http post 请求将沿 3 轴的加速度数据上传到服务器。 Unfortunately the post request is not occuring here.不幸的是,这里没有发生 post 请求。 The service is running, but the POST is not happening.服务正在运行,但 POST 没有发生。 The code I am using is here.我正在使用的代码在这里。

https://github.com/AgnivaDutta/Vibration_Monitor_App https://github.com/AgnivaDutta/Vibration_Monitor_App

The localhost.zip is my android project. localhost.zip 是我的 android 项目。

Can anyone point out what I am missing here.谁能指出我在这里缺少什么。

You have to register Post_Data Service in Manifest, Add您必须在 Manifest 中注册Post_Data服务,添加

<service android:name=".Post_Data" />

Inside Application tag of your manifest file.在清单文件的应用程序标签内。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM