File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
static const char * HELLOWORLD_METATABLE = NODEMCU_MODULE_METATABLE ();
9
9
10
- // hello_context_t struct contains information to wrap a esp_mqtt client in lua
10
+ // hello_context_t struct contains information to wrap a "hello world object"
11
11
typedef struct {
12
- char * my_name ;
12
+ char * my_name ; // pointer to the greeter's name
13
13
} hello_context_t ;
14
14
15
15
// Lua: helloworldobj:hello(text)
@@ -37,7 +37,7 @@ static int helloworld_new(lua_State* L) {
37
37
luaL_getmetatable (L , HELLOWORLD_METATABLE );
38
38
lua_setmetatable (L , -2 );
39
39
40
- return 1 ; //one object returned, the mqtt context wrapped in a lua userdata object
40
+ return 1 ; //one object returned, the helloworld context wrapped in a lua userdata object
41
41
}
42
42
43
43
// object function map:
You can’t perform that action at this time.
0 commit comments