public
| 119 | |
| 120 | //public |
| 121 | void Everything::init() |
| 122 | { |
| 123 | Serial.begin(Constants::SERIAL_BAUDRATE); |
| 124 | Return_String.reserve(st::Constants::RETURN_STRING_RESERVE); //allocate Return_String buffer one time to prevent Heap Fragmentation. RETURN_STRING_RESERVE is set in Constants.h |
| 125 | |
| 126 | if(debug) |
| 127 | { |
| 128 | Serial.println(F("Everything: init started")); |
| 129 | Serial.print(F("Everything: Free RAM = ")); |
| 130 | Serial.println(freeRam()); |
| 131 | } |
| 132 | |
| 133 | #ifndef DISABLE_SMARTTHINGS |
| 134 | SmartThing->init(); |
| 135 | #endif |
| 136 | |
| 137 | |
| 138 | if(debug) |
| 139 | { |
| 140 | Serial.println(F("Everything: init ended")); |
| 141 | Serial.print(F("Everything: Free RAM = ")); |
| 142 | Serial.println(freeRam()); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | void Everything::initDevices() |
| 147 | { |
no test coverage detected