Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinTwitter.h@110:d1da040a0cf2, 2015-11-24 (annotated)
- Committer:
- uci1
- Date:
- Tue Nov 24 21:52:27 2015 +0000
- Revision:
- 110:d1da040a0cf2
- Parent:
- 37:ff95e7070f26
Stn32 (slow) with conf name. SD stall fix. No interface chip. Safety nets.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 37:ff95e7070f26 | 1 | #ifndef SN_SnCommWinTwitter |
uci1 | 37:ff95e7070f26 | 2 | #define SN_SnCommWinTwitter |
uci1 | 37:ff95e7070f26 | 3 | |
uci1 | 37:ff95e7070f26 | 4 | #include "SnCommWinAfar.h" |
uci1 | 37:ff95e7070f26 | 5 | |
uci1 | 37:ff95e7070f26 | 6 | class SnCommWinTwitter : public SnCommWinAfar { |
uci1 | 37:ff95e7070f26 | 7 | public: |
uci1 | 37:ff95e7070f26 | 8 | static const char* kTwitIP; |
uci1 | 37:ff95e7070f26 | 9 | static const char* kTwitUrl; |
uci1 | 37:ff95e7070f26 | 10 | static const char* kB64cred; |
uci1 | 37:ff95e7070f26 | 11 | |
uci1 | 37:ff95e7070f26 | 12 | private: |
uci1 | 37:ff95e7070f26 | 13 | SnCommWin::ECommWinResult SendTweet(const char* str, |
uci1 | 37:ff95e7070f26 | 14 | const uint32_t timeout); |
uci1 | 37:ff95e7070f26 | 15 | |
uci1 | 37:ff95e7070f26 | 16 | void GetTimeTweet(char* genBuf, const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 17 | void GetRunTweet(char* genBuf, const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 18 | void GetRatesTweet(char* genBuf, |
uci1 | 37:ff95e7070f26 | 19 | const SnConfigFrame& conf, |
uci1 | 37:ff95e7070f26 | 20 | const float thmrate, |
uci1 | 37:ff95e7070f26 | 21 | const float evtrate); |
uci1 | 37:ff95e7070f26 | 22 | void GetBytesTweet(char* genBuf, const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 23 | char* GetGreeting(char* genBuf, const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 24 | char* AppendMacId(char* genBuf, const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 25 | |
uci1 | 37:ff95e7070f26 | 26 | public: |
uci1 | 37:ff95e7070f26 | 27 | SnCommWinTwitter(const SnConfigFrame& conf); |
uci1 | 37:ff95e7070f26 | 28 | virtual ~SnCommWinTwitter() {} |
uci1 | 37:ff95e7070f26 | 29 | |
uci1 | 37:ff95e7070f26 | 30 | SnCommWin::ECommWinResult Tweet(const SnConfigFrame& conf, |
uci1 | 37:ff95e7070f26 | 31 | const float thmrate, |
uci1 | 37:ff95e7070f26 | 32 | const float evtrate, |
uci1 | 37:ff95e7070f26 | 33 | char* genBuf, |
uci1 | 37:ff95e7070f26 | 34 | const uint32_t timeout); |
uci1 | 37:ff95e7070f26 | 35 | |
uci1 | 37:ff95e7070f26 | 36 | void GetTweet(char* genBuf, |
uci1 | 37:ff95e7070f26 | 37 | const SnConfigFrame& conf, |
uci1 | 37:ff95e7070f26 | 38 | const float thmrate, |
uci1 | 37:ff95e7070f26 | 39 | const float evtrate); |
uci1 | 37:ff95e7070f26 | 40 | |
uci1 | 37:ff95e7070f26 | 41 | }; |
uci1 | 37:ff95e7070f26 | 42 | |
uci1 | 37:ff95e7070f26 | 43 | #endif // SN_SnCommWinTwitter |