If you download this code to device you should add block to connect to your wifi network

advanced -> network -> wifi connect

or

advanced -> network -> connect to wifi ...