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: nr_network.h
- Revision:
- 8:6e063a3827c0
- Parent:
- 4:7e8a23454d85
- Child:
- 10:d178bc9eb95a
diff -r d713a0e47ffe -r 6e063a3827c0 nr_network.h --- a/nr_network.h Tue Apr 26 13:03:09 2016 +0000 +++ b/nr_network.h Thu May 05 14:52:33 2016 +0000 @@ -37,7 +37,7 @@ char* GetIP(); /** Establish a connection to the API */ - int Connect(); + int Connect(const char* url); /** Disconnect from the API */ void Disconnect();