DHCP server - addressing

Hello

I need creating dhcp serven on ESP8266 in Access Point mode.
I need addressing clients from 10.0.0.1 to 10.0.0.9. Address ESP (Access Point) must be 10.0.0.10. AP mode on ESP8266 working, but I have problem with adressing dhcp.

My Access Point code:

#include <ESP8266WiFi.h>

#define led_wifi 2 

const char* ssid     = "**********"; //name WiFi
const char* password = "**********"; //password WiFi

int status = WL_IDLE_STATUS;

void setup()
{
 IPAddress ip(10, 0, 0, 10);
 IPAddress gateway(10, 0, 0, 10);
 IPAddress subnet(255, 255, 255, 248);
 WiFi.softAPConfig(ip, gateway, subnet);
 WiFi.mode(WIFI_AP);
 WiFi.softAP(ssid, password);
 Serial.begin(9600);
 Serial.setTimeout(0);
 delay(100);
}

Please help
Regards

I think the subnet mask is wrong. Google for "ip address subnet calculator".

Thank you. The last octet in the mask should be "240", but this error does not cause of a general problem.