我已经在 iOS 设备上设置了一个带有端口的服务器,并以编程方式订阅了这样的上下文代理:
{
"notifyConditions": [
{
"type": "ONTIMEINTERVAL",
"condValues": [
"PT10s"
]
}
],
"reference": "http://myipaddress:1028/",
"entities": [
{
"type": "Warning",
"id": "NotMatch",
"isPattern": "false"
}
],
"attributes": [
"difference"
],
"duration": "P1M"
}
并得到这样的回应:
{
subscribeResponse = {
duration = P1M;
subscriptionId = 54b019b9a85d634562fd252f;
};
}
但我无法收到任何事件通知。如果我将引用设置为:
"reference": "http://localhost:1028/accumulate"
,我可以在 accumulator-server.py 屏幕上看到事件消息。