-
Notifications
You must be signed in to change notification settings - Fork 7
Quickstart
Ben Kroop edited this page Feb 26, 2019
·
1 revision
- Make sure you've completed the Environment Setup first.
- Open two terminals and in each terminal,
cdinto the root directory of thehover-jetgit repository. - In the each terminal, start a
hoverjetcontainer by runningjet run - In the first terminal, run
/jet/run/subscriber_demo_bq_main. You should briefly see some output at the start. - In the second terminal, run
/jet/run/publisher_demo_bq_main. - You should now see messages printing periodically in the first terminal.
- The
PublisherDemoBQconnects to the pub/sub Broker and periodically publishes a message on the channel nameddemo_channel_name. The source for thePublisherDemoBQis here:infrastructure/comms/tests/pub_sub_demo_bqs/publisher_demo_bq.cc - The
SubscriberDemoBQconnects to the pub/sub Broker and subscribes to messages on the channel nameddemo_channel_name. It periodically reads from this channel and prints the contents of the message received. The source forSubscriberDemoBQis here:infrastructure/comms/tests/pub_sub_demo_bqs/subscriber_demo_bq.cc - The message message sent between the two BQs is the
DemoMessage, whose schema is defined here:infrastructure/comms/schemas/demo_message.hh. This message contains just a string value and a message header, which it inherits from the baseMessageclass.