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 77
88static const char * HELLOWORLD_METATABLE = NODEMCU_MODULE_METATABLE ();
99
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"
1111typedef struct {
12- char * my_name ;
12+ char * my_name ; // pointer to the greeter's name
1313} hello_context_t ;
1414
1515// Lua: helloworldobj:hello(text)
@@ -37,7 +37,7 @@ static int helloworld_new(lua_State* L) {
3737 luaL_getmetatable (L , HELLOWORLD_METATABLE );
3838 lua_setmetatable (L , -2 );
3939
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
4141}
4242
4343// object function map:
You can’t perform that action at this time.
0 commit comments