Uno Wifi Rev2

I used the library NewRemoteSwitch with my Arduino Uno with success.

For my new project, I need a WiFi connection and I select the Arduino Uno Wifi Rev2.

But unfortunately the library NewRemoteSwitch doesn't work on the Arduino Uno Wifi Rev2.

is there a solution?

my solution is here :