Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 views
in Technique[技术] by (71.8m points)

fiware - Orion Context Broker Context subscriptions with Android client

Is it possible to make context subscriptions to Orion Context Broker resources from an Android application? For NGSI10 basic operations (updateContext and queryContext) I supose that any common android rest client can be used, but how can we subscribe through subscribeContext?

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Disclosure: I'm the co-founder of Bastly

Bastly is an open source solution, so you can deploy on your own instances our software and use it for free (AGPL2)

The hacker plan is enough to test it out without the hassle of deploying the instances, then is a paid service based on how many concurrent users/messages you send. Don't hesitate to ask us for startup plans, discounts, etc.

Register to get an APIKEY and you can test it out pushing objects to our ORION instance at the moment http://orion.bastly.com:1026/ and following the doc https://github.com/Bastly/bastly-sdk-android how to get updates based on a channel. I'll make a step-to-step guide for Orion in the next week.

We are working on allowing to config your own Orion instance from the user panel, it will be ready around next week

Ping me on alex@bastly.com for any help that you may need.

The specific code that handles the Orion subscription pushes to sockets is on Bastly/connector-rest:

https://github.com/Bastly/connector-rest

We use ZeroMQ to send messages across platforms and a translator from ZeroMQ to SocketIO for webs, chaski workers are in charge of that:

https://github.com/Bastly/chaski

And all the request are handled through Atahualpa that decides where to forward the messages using a data bus and an operations bus:

https://github.com/Bastly/atahualpa


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...