3

It returns it to whatever the function is being assigned to. Take the function: int plus(int a, int b) { return a + b; } That function takes two integers, adds them together, and "returns" them as an integer. You can then do: int c = plus(3, 4); and c will be handed the value 7 by the function. Equally you can do: Serial.println(plus(3, 4)); ...


2

A 200 response doesn't guarantee that your payload will actually contain any data. It depends on the server. The server might determine to respond with a 200 code but still not return any JSON code for your request. I am not at all sure, but the server may be rejecting your request because it doesn't like your user agent. I have seen my own ESP8266 supply ...


1

The reason is that a function is evaluated just as any other expression would be. Every expression - `(x**x - 3*x + 5), for instance - has a value and a type (unless the type is void, then it has no value, or not a defined one), and that includes functions. The compiler needs to know the type of every element of the expression in order to know how to use ...


1

You can make a smooth transition/sliding rainbow effect by using a sine wave lookup table, then phase shifting green and blue by 120 and 240 degrees. #define RED 9 #define GREEN 10 #define BLUE 11 uint8_t sins[360] = { 127,129,131,134,136,138,140,143,145,147,149,151,154,156,158,160,162,164,166,169,171,173,175,177,179,181,183,185,187,189,191,193,195,196,...


Only top voted, non community-wiki answers of a minimum length are eligible