Simple detection for LE910-NA1 modules
Fork of MTS-Cellular by
Cellular/CellularFactory.h@11:4e428f689069, 2014-05-22 (annotated)
- Committer:
- Mike Fiore
- Date:
- Thu May 22 09:26:51 2014 -0500
- Revision:
- 11:4e428f689069
- Child:
- 26:2b769ed8de4f
add CellularFactory to automatically detect and create right type of Cellular class
add static sendCommand function to CellUtils so we can talk to radio before instantiating Cellular
add Cellular::Radio param to UIP constructor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
11:4e428f689069 | 1 | #ifndef CELLULARFACTORY_H |
Mike Fiore |
11:4e428f689069 | 2 | #define CELLULARFACTORY_H |
Mike Fiore |
11:4e428f689069 | 3 | |
Mike Fiore |
11:4e428f689069 | 4 | #include "UIP.h" |
Mike Fiore |
11:4e428f689069 | 5 | //#include "EasyIP.h" |
Mike Fiore |
11:4e428f689069 | 6 | #include "MTSBufferedIO.h" |
Mike Fiore |
11:4e428f689069 | 7 | |
Mike Fiore |
11:4e428f689069 | 8 | namespace mts { |
Mike Fiore |
11:4e428f689069 | 9 | |
Mike Fiore |
11:4e428f689069 | 10 | class CellularFactory |
Mike Fiore |
11:4e428f689069 | 11 | { |
Mike Fiore |
11:4e428f689069 | 12 | public: |
Mike Fiore |
11:4e428f689069 | 13 | static Cellular* create(MTSBufferedIO* io); |
Mike Fiore |
11:4e428f689069 | 14 | }; |
Mike Fiore |
11:4e428f689069 | 15 | |
Mike Fiore |
11:4e428f689069 | 16 | } |
Mike Fiore |
11:4e428f689069 | 17 | |
Mike Fiore |
11:4e428f689069 | 18 | #endif |