SimpleWifi uses the Arduino Ethernet Client api and it provides both Ethernet compatibility methods for the WiFly Shield and the RN-XV WiFly Module both available from SparkFun Electronics and a full MQTT v3 client.