--
You received this message because you are subscribed to the Google Groups "pubsub-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/3b0434fe-8429-47d1-9dae-9c1917a5a817n%40googlegroups.com.
Hi,
First I want to clarify one thing here, this is statement is misleading :
“But none of the, via the Core-IoT website published, messages arrived. I guess it's because my subscriber is set to "pull" - but I want Pub/Sub to automatically push all new messages to the subscriber. “
You are assuming that you need to switch to push in order for the esp8266 to get the messages from PubSub topic which is not right. One may use push or pull subscription to consume the message the difference between the two methods is who initiates the connection.
Push subscription --> PubSub initiate the connection to send the message to the esp8622 (The endpoint that you need to set)
Pull subscription --> The Esp8266 initial the connection to fetch the messages from PubSub (from a Pubsub endpoint)
So you better troubleshoot why the message was not pulled by the Esp8266 instead of changing from pull to push.
Now for the this question:
" I'm a bit confused because I thought this whole system is based on MQTT but a endpoint-URL sounds more like HTTP. Do I really have to set up an endpoint-URL, and if yes, how can I do that for my ESP8266?"
The answer is yes, if you choose to use the Push method then PusSub needs to know where to send the messages , the endpoint is just an HTTP destination on the internet.
I think this git example does what you want to achieve, you may get inspired by it [1]
Finally as kir said you'll get more help and answers using the stack overflow google-cloud-io tag .I hope this helps
Good luck
[1]: https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_esp8266/mqtt_esp8266.ino
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/c62247bd-d0b3-49cd-9997-593bd82e564cn%40googlegroups.com.