I just bought an Arduino Yun to use Pusher.com in order to receive events from internet. Unfortunately, the
ArduinoPusherClient library (GitHub - krohling/ArduinoPusherClient: An Arduino interface to Pusher (pusherapp.com)) is not compatible with the Yun because it uses EthernetClient instead of YunClient. I tried to make some changes in the source code but my program just stops silently because of a
memory issue I think. I read that Pakken made it in this thread, I sent him a private message but I got no answer (More memory for arduino sketches? - Arduino Yún - Arduino Forum) . I'd like to know if someone knows how to achieve it or if someone has another solution. My goal is to be able to control a Servo from internet.
I was just looking into the Pusher (see my other post). It won't work for me, because it requires internet connectivity (which I didn't realize until after I started building an app using it). But it did seem like it would work. Is your point about EthernetClient vs YunClient that the EthernetClient will only connect over the RJ45 connector? Is that right? If so - yikes. I wouldn't expect it to work that way, the client should be interfacing to the IP "stack" at a higher level than the physical layer where it would matter if IP is going out over WiFi or Ethernet. But I'm not sure about that....
Looking at the ArduinoPusherClient library, it seems using the EthernetClient class. You can create a class that has the same methods but that new class uses YunClient instead of Ethernet library. Changing only that class in the WebSocketClient.h should leave the rest of the library untouched.
Unfortunately this is something I tried. I also replaced "prog_char" declarations by "const char XXX PROGMEM". But it doesn't work, the program just stops quickly, and silently...