问题描述
我想我的铅球探作出POST请求(例如通知的远程服务已触发的事件)。
I'd like my Pinocc.io lead scout to make a POST request (e.g. to inform a remote service of an event that has been triggered).
请注意,我不希望(这里详细的我从管理员
I posted the same message directly on the Pinoccio website and I got this answer from an Admin
出了大门,这不是通过总部的支持。主要是因为得到尽可能
API / HQ和首席球探之间的实时性能,它使最
感觉离开TCP套接字不断开放和传输数据
办法。 HTTP,如你所知,需要一个连接,设置,转移,
在每次请求拆除。
但是,这并不意味着你不能得到它
加工。事实上,你可以两者都做,如果你想,离开主TCP
插座连接到总部,并有一个独立的TCP客户端套接字连接
到任何网站/服务器你想和发送任何你喜欢的。它会
需要自定义引导,但你可以再的。
However, doesn't mean you can't get it working. In fact, you can do both if you wanted—leave the main TCP socket connected to HQ, and have a separate TCP client socket connect to any site/server you want and send whatever you like. It will require a custom Bootstrap, but you can then expose any aspect of that functionality to HQ/ScoutScript directly.
如果你看看这个 code ,这是客户对象,你会用它来打开HTTP连接。
If you take a look at this code, that's the client object you'd use to open an HTTP connection.
所以,简而言之领先侦察无法进行POST请求。要做到这一点,你需要创建(例如,使用Arduino的IDE)自定义引导。
So in a nutshell the lead scout cannot make a POST request. To do so you'll need to create a custom bootstrap (e.g. using the Arduino IDE).
这篇关于一个Pinoccio铅球探怎样才能使一个POST请求到远程服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!