Commit 714d403e authored by Christopher Reis's avatar Christopher Reis

Updated IP and Dictionary Location

parent bde7bdde
...@@ -27,7 +27,7 @@ using json = nlohmann::json; ...@@ -27,7 +27,7 @@ using json = nlohmann::json;
using namespace gmsec::api; using namespace gmsec::api;
json dictionary; json dictionary;
std::string url = "http://192.168.1.4:8085/telemachus/datalink?"; std::string url = "http://192.168.0.58:8085/telemachus/datalink?";
std::string v_url; std::string v_url;
std::string o_url; std::string o_url;
std::string n_url; std::string n_url;
...@@ -64,7 +64,8 @@ void CALL_TYPE PublishThread::run() ...@@ -64,7 +64,8 @@ void CALL_TYPE PublishThread::run()
//o Delay to allow subscriber thread to set up //o Delay to allow subscriber thread to set up
example::millisleep(100); example::millisleep(100);
std::ifstream myfile ("/GMSEC_API/bin/dictionary_adaptor.json"); std::ifstream myfile ("dictionary_adaptor.json");
std::cout << "Lodaded dictionary" << '\n';
std::string str((std::istreambuf_iterator<char>(myfile)), (std::istreambuf_iterator<char>())); std::string str((std::istreambuf_iterator<char>(myfile)), (std::istreambuf_iterator<char>()));
dictionary = json::parse(str); dictionary = json::parse(str);
for (size_t i = 0; i < dictionary["subsystems"].size(); i++) { for (size_t i = 0; i < dictionary["subsystems"].size(); i++) {
...@@ -242,6 +243,10 @@ void PublishThread::setup() ...@@ -242,6 +243,10 @@ void PublishThread::setup()
//o Connect to the GMSEC bus //o Connect to the GMSEC bus
connection->connect(); connection->connect();
// url = example::get(config, "KERBAL_URL", "http://192.168.1.4:8085");
// std::cout << "Listening to telemachus on " << url << '\n';
// url += "/telemachus/datalink?";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment