我连你第一个的编译都通不过。
原码是
...
WiflyClass Wifly(2,3); //编译提示 WiflyClass does not name a type
void setup()
{
Serial.begin(9600);
Wifly.init();//编译提示Wifly was not declared in this scope;expected unqualified-id before '.' token
...
改成
SoftwareSerial uart(2,3);
WiFly wifly(&uart);
void setup()
{
Serial.begin(9600);
WiFly::init();// 编译提示cannot call member function 'boolean WiFly::init()' without object
...