Skip to content

Commit

Permalink
Updated README for the new agent.signal_subscribe(...) function to av…
Browse files Browse the repository at this point in the history
…oid hard coding default subscribed to signals. Will merge into PDXostc develop and master and tag as release
  • Loading branch information
afan1 committed May 5, 2016
1 parent fb8885e commit 09806b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ agent:
}
}
agent.signal_subscribe(sub) = {
Expected Parameters:
sub = interface to subscribe to, to listen for signals
Return = Void
}
```

Typical Event Loop code:
Expand Down
2 changes: 1 addition & 1 deletion src/agent_handler_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
TERMINATE_AGENT_SERVICE = "terminate_agent"

#The websocket host that our RVI websocket server is listening on
RVI_WS_HOST = "ws://localhost:8808"
RVI_WS_HOST = "ws://localhost:9008"

#For future iterations when we confirm the status of the dynamic agents
RVI_AGENT_REPORT_SERVICE = "genivi.org/backend/dynamicagents/agent_report"
Expand Down
2 changes: 2 additions & 0 deletions test/send_bad.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require"os"

agent.signal_subscribe("bus.can.update.can_medium_speed")

os.execute("sleep 5")
4 changes: 3 additions & 1 deletion test/send_proper.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
local host_prefix = "genivi.org/node/test-node/"
local host_prefix = "genivi.org/node/afantest/"

agent.signal_subscribe("bus.can.update.can_medium_speed")

time.now()
time.sleep(1)
Expand Down

0 comments on commit 09806b4

Please sign in to comment.