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:
3:a287e75a2121
Parent:
1:1de042ff6324
Child:
4:7e8a23454d85
diff -r 071bf3c7f2a2 -r a287e75a2121 arrival_board.h
--- a/arrival_board.h	Thu Apr 21 12:59:47 2016 +0000
+++ b/arrival_board.h	Thu Apr 21 13:32:54 2016 +0000
@@ -4,6 +4,9 @@
 #include "arrival.h"
 #include <string>
 
+/** Arrival_Board
+*   Contains information pertaining to an arrival board; namely, a list of arrivals and a list of National Rail messages.
+*/
 class Arrival_Board
 {
 public:
@@ -13,7 +16,7 @@
     std::string* messages;
     int num_messages;
     
-    Arrival_Board(Arrival* _arrivals);
+    Arrival_Board(Arrival* _arrivals, const int& _num_arrivals, std::string* _messages, const int& _num_messages);
     Arrival_Board();
     
     ~Arrival_Board();