API for linking to the Huxley National Rail REST proxy for the retrieval of live National Rail data. Still needs work (sadly), but works well for the time being!
Dependencies: EthernetInterface
National Rail Huxley Integration Interface
This API provides a clear link between the National Rail Huxley Integration JSON interface (available at https://huxley.unop.uk/), and mbed devices, over an Ethernet connection. This project is still very much a work-in-progress, but hopefully I will be able to provide a comprehensive method of retrieving live National Rail departures data in a simple and effective way.
Diff: arrival_board.cpp
- Revision:
- 3:a287e75a2121
- Parent:
- 0:bf04f62339a4
- Child:
- 6:dae1cdf19e90
diff -r 071bf3c7f2a2 -r a287e75a2121 arrival_board.cpp --- a/arrival_board.cpp Thu Apr 21 12:59:47 2016 +0000 +++ b/arrival_board.cpp Thu Apr 21 13:32:54 2016 +0000 @@ -3,9 +3,12 @@ using std::string; -Arrival_Board::Arrival_Board(Arrival* _arrivals) +Arrival_Board::Arrival_Board(Arrival* _arrivals, const int& _num_arrivals, std::string* _messages, const int& _num_messages) { arrivals = _arrivals; + num_arrivals = _num_arrivals; + messages = _messages; + num_messages = _num_messages; } Arrival_Board::~Arrival_Board()