Skip to content

Debug

Name Input Params Return Data Description
resiot_debug String String Print the string in the console
resiot_globaldebug BYTE [ ], String BYTE [ ] Print the string into the log
resiot_debugf String String Print the string into the console
resiot_globaldebugf BYTE [ ], String BYTE [ ] Print the string into the log

resiot_debug(String)

Print the string in the console.
Example
No return values | resiot_debug(String)
Input Parameters
 - String (String): * The string to print.
Returns
 - * The function prints the string into the console.

String = "Hello World!"     -- The string to print
resiot_debug(String)
-- 
-- If you look in the black area below, you'll see the sentence "Hello World!"
-- 

Return to index


resiot_globaldebug (String)

Print the string into the log.
Example
No return values | resiot_globaldebug(String)
Input Parameters
 - String (String): * The string to print.
Returns
 - * The function prints the string into the log.

String = "Hello World!"     -- The string to print
resiot_globaldebug(String)
-- 
-- If you look in the log below, you'll see the sentence "Hello World!"
-- 

Return to index


resiot_debugf (String)

Print various type of string into the console.
This function is based on Golang's string formatting, see more here.
Example
No return values | resiot_debugf(String)
Input Parameters
 - String (String): * The string to print.
Returns
 - * The function prints the string into the console.

Map = {"Hello","World!"}        -- The string to print
resiot_debugf("&#37v", Map)
resiot_debugf("&#37s", "Hello World!")
resiot_debugf("&#37v &#37v", "Lorem Ipsum", 25)
resiot_debugf("&#37.4f", 25.252525252525)
-- 
-- If you look in the console below, you'll see the sentence map[1:Hello 2:World!]
-- 
-- 
-- If you look in the console below, you'll see the sentence "Hello World!"
-- 
-- 
-- If you look in the console below, you'll see the sentence "Lorem Ipsum 25"
-- 
-- 
-- If you look in the console below, you'll see the sentence "25.2525"
-- 

Return to index


resiot_globaldebugf (String)

Print various type of string into the log.
This function is based on Golang's string formatting, see more here.
Example
No return values | resiot_globaldebugf(String)
Input Parameters
 - String (String): * The string to print.
Returns
 - * The function prints the string into the log.

Map = {"Hello","World!"}        -- The string to print
resiot_globaldebugf("&#37v", Map)
resiot_globaldebugf("&#37s", "Hello World!")
resiot_globaldebugf("&#37v &#37v", "Lorem Ipsum", 25)
resiot_globaldebugf("&#37.4f", 25.252525252525)
-- 
-- If you look in the log below, you'll see the sentence map[1:Hello 2:World!]
-- 
-- 
-- If you look in the log below, you'll see the sentence "Hello World!"
-- 
-- 
-- If you look in the log below, you'll see the sentence "Lorem Ipsum 25"
-- 
-- 
-- If you look in the log below, you'll see the sentence "25.2525"
-- 

Return to index