Hi,
Here are fragments of my gateway working code:
// **** Define the WiFi name and password ****
#define WIFICONF_INSKETCH
#define WiFi_SSID "WiFiSSID"
#define WiFi_Password "WiFiPassword"
// Include framework code and libraries
#include <ESP8266WiFi.h>
uint8_t ip_address[4] = {192, 168, 1, 77};
uint8_t subnet_mask[4] = {255, 255, 255, 0};
uint8_t ip_gateway[4] = {192, 168, 1, 2};
#define Gateway_address 77
#define myvNet_address ip_address[3]
#define myvNet_subnet 0xFF00
#define myvNet_supern Gateway_address
void setup() {
Souliss_SetIPAddress(ip_address, subnet_mask, ip_gateway);
SetAsGateway(myvNet_address);
SetAddress(0xAB01, 0xFF00, 0x0000);
SetAsPeerNode(0xAB02, 1);