That code is not compatible with an AVR processor such as on an Uno board. It's meant to run on the ESP8266 itself.