Changeset 13919
- Timestamp:
- 05/26/12 15:02:10 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/magicweather.cc
r13867 r13919 19 19 #include "tools.h" 20 20 21 #include "HeadersMagicWeather.h" 21 22 22 23 namespace ba = boost::asio; … … 25 26 26 27 using namespace std; 27 28 // ------------------------------------------------------------------------ 29 30 struct DimWeather 31 { 32 DimWeather() { memset(this, 0, sizeof(DimWeather)); } 33 34 uint16_t fStatus; 35 36 float fTemp; 37 float fDew; 38 float fHum; 39 float fPress; 40 float fWind; 41 float fGusts; 42 float fDir; 43 44 } __attribute__((__packed__)); 45 28 using namespace MagicWeather; 46 29 47 30 // ------------------------------------------------------------------------ … … 363 346 S fWeather; 364 347 365 enum states_t366 {367 kStateDisconnected = 1,368 kStateConnected,369 kStateReceiving,370 };371 372 348 bool CheckEventSize(size_t has, const char *name, size_t size) 373 349 { … … 443 419 444 420 // State names 445 AddStateName(kStateDisconnected, "NoConnection",421 T::AddStateName(State::kDisconnected, "NoConnection", 446 422 "No connection to web-server could be established recently"); 447 423 448 AddStateName(kStateConnected, "Invalid",424 T::AddStateName(State::kConnected, "Invalid", 449 425 "Connection to webserver can be established, but received data is not recent or invalid"); 450 426 451 AddStateName(kStateReceiving, "Valid",427 T::AddStateName(State::kReceiving, "Valid", 452 428 "Connection to webserver can be established, receint data received"); 453 429
Note:
See TracChangeset
for help on using the changeset viewer.