+string buildActionSetDesc(unsigned int delay = 0, unsigned int type = 0)
+{
+ string actionsetDesc = "";
+ actionsetDesc = "allbulboff";
+ actionsetDesc.append("*");
+ actionsetDesc.append(std::to_string(delay)); // Set delay time.
+ actionsetDesc.append(" ");
+ actionsetDesc.append(std::to_string(type)); // Set action type.
+ actionsetDesc.append("*");
+ for (auto iter = lights.begin(); iter != lights.end(); ++iter)
+ {
+ actionsetDesc.append("uri=").append((*iter));
+ actionsetDesc.append("|");
+ actionsetDesc.append("power=");
+ actionsetDesc.append("off");
+ if ((iter + 1) != lights.end())
+ {
+ actionsetDesc.append("*");
+ }
+ }
+ return actionsetDesc;
+}
+
+bool isResourceReady()
+{
+ return isReady;
+}
+
+int main(int argc, char* argv[])