32 print_value = snprintf(pcInsert, iInsertLen,
"%f", (adc_read() * 3.3f / (1 << 12)));
35 print_value = snprintf(pcInsert, iInsertLen,
"%f", (27.0f - ((adc_read() * 3.3f / (1 << 12)) - 0.706f) / 0.001721f));
38 if (cyw43_arch_gpio_get(CYW43_WL_GPIO_LED_PIN))
39 print_value = snprintf(pcInsert, iInsertLen,
"ON");
41 print_value = snprintf(pcInsert, iInsertLen,
"OFF");
45 print_value = snprintf(pcInsert, iInsertLen,
"ON");
47 print_value = snprintf(pcInsert, iInsertLen,
"OFF");
53 print_value = snprintf(pcInsert, iInsertLen,
"rainbow-wheel");
56 print_value = snprintf(pcInsert, iInsertLen,
"rainbow-cycle");
59 print_value = snprintf(pcInsert, iInsertLen,
"static");
62 print_value = snprintf(pcInsert, iInsertLen,
"breathing");
65 print_value = snprintf(pcInsert, iInsertLen,
"flashing");
68 print_value = snprintf(pcInsert, iInsertLen,
"loading");
71 print_value = snprintf(pcInsert, iInsertLen,
"wave");
74 print_value = snprintf(pcInsert, iInsertLen,
"fade");
85 print_value = snprintf(pcInsert, iInsertLen,
"red");
88 print_value = snprintf(pcInsert, iInsertLen,
"green");
91 print_value = snprintf(pcInsert, iInsertLen,
"blue");
94 print_value = snprintf(pcInsert, iInsertLen,
"white");
97 print_value = snprintf(pcInsert, iInsertLen,
"purple");
100 print_value = snprintf(pcInsert, iInsertLen,
"yellow");
103 print_value = snprintf(pcInsert, iInsertLen,
"cyan");
106 print_value = snprintf(pcInsert, iInsertLen,
"orange");
109 print_value = snprintf(pcInsert, iInsertLen,
"pink");
112 print_value = snprintf(pcInsert, iInsertLen,
"turquoise");
115 print_value = snprintf(pcInsert, iInsertLen,
"magenta");
127 print_value = snprintf(pcInsert, iInsertLen,
"%04d-%02d-%02dT%02d:%02d:%02dZ",
utc->tm_year + 1900,
utc->tm_mon + 1,
utc->tm_mday,
utc->tm_hour,
utc->tm_min,
utc->tm_sec);
129 print_value = snprintf(pcInsert, iInsertLen,
"NULL");
135 return (u16_t)print_value;