This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static esp_err_t joinMulticastGroup(const ip_addr_t *addr, bool join, tcpip_adapter_if_t tcpip_if=TCPIP_ADAPTER_IF_MAX) | |
{ | |
struct netif * netif = NULL; | |
if(tcpip_if < TCPIP_ADAPTER_IF_MAX){ | |
void * nif = NULL; | |
esp_err_t err = tcpip_adapter_get_netif(tcpip_if, &nif); | |
if (err) { | |
return ESP_ERR_INVALID_ARG; | |
} | |
netif = (struct netif *)nif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(115200); | |
Serial.println(""); | |
float x = 2.0; | |
float y = 2.2; | |
int i; | |
for(i = 0; i < 10; i++) { | |
Serial.println(pow(i, x)); |