Device goes off after blinkup

After successful wifi connection, green light is blinking for 6-7 seconds then a device goes off automatically.For few seconds it is connecting after that device is going off. LED of power and wifi is also going off. What should I do?

What device is this? Squirrel code running on the device can make the device sleep, but not knowing what the device is makes further comment quite hard.