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.

/media/uploads/Leigh_LbR/nre_powered_logo.jpg

Revision:
4:7e8a23454d85
Parent:
0:bf04f62339a4
Child:
6:dae1cdf19e90
--- a/departure_board.cpp	Thu Apr 21 13:32:54 2016 +0000
+++ b/departure_board.cpp	Thu Apr 21 15:02:20 2016 +0000
@@ -3,9 +3,12 @@
 
 using std::string;
 
-Departure_Board::Departure_Board(Departure* _departures) 
+Departure_Board::Departure_Board(Departure* _departures, const int& _num_departures, std::string* _messages, const int& _num_messages)
 {
     departures = _departures;
+    num_departures = _num_departures;
+    messages = _messages;
+    num_messages = _num_messages;
 }
 
 Departure_Board::~Departure_Board()