MCPcopy Create free account
hub / github.com/SmingHub/Sming / getValue

Function getValue

samples/Basic_IFS/app/application.cpp:63–74  ·  view source on GitHub ↗

* Handle any custom fields here */

Source from the content-addressed store, hash-verified

61 * Handle any custom fields here
62 */
63String getValue(const char* name)
64{
65 if(FS("webpage") == name) {
66 return "https://github.com/SmingHub/Sming";
67 }
68
69 if(FS("request-count") == name) {
70 return String(requestCount); // Doesn't require escaping
71 }
72
73 return nullptr;
74}
75
76void onFile(HttpRequest& request, HttpResponse& response)
77{

Callers 2

getValueMethod · 0.50
executeMethod · 0.50

Calls 1

StringClass · 0.50

Tested by

no test coverage detected