西库里1.1.4。 App.open:0秒后在taskList中找不到

时间:2018-12-12 16:38:10

标签: sikuli

尝试启动应用(Mojave,Sikuli 1.1.4)

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <WebSocketsServer.h>
#include <Hash.h>
#include <SoftwareSerial.h>

SoftwareSerial s(D6,D5);
String data;
int ledPin = D7;

const char* ssid = "blablabla";
const char* password = "blablabla";


WebSocketsServer webSocket = WebSocketsServer(81);

void setup() {
  Serial.begin(9600);
  s.begin(9600);
  WiFi.setAutoReconnect(true);
  WiFi.begin(ssid, password);
  Serial.println("");

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
   }

    Serial.println("");
    Serial.print("Connected to ");
    Serial.println(ssid);
    Serial.print("IP address: ");
    Serial.println(WiFi.localIP());

    webSocket.begin();
    webSocket.onEvent(webSocketEvent);

    pinMode(ledPin, OUTPUT);    
}

void loop() {

      if (WiFi.status() == WL_CONNECTED) {
          digitalWrite(ledPin, HIGH);        
      } else {
          digitalWrite(ledPin, LOW);
      }

    webSocket.loop();


    if (s.available()>0)
    {
      data=s.readString();

      webSocket.broadcastTXT(data); 
      Serial.println(data);  
   }


}

void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t     length){


   if (type == WStype_TEXT){
    for(int i = 0; i < length; i++) {
      Serial.print((char) payload[i]);

   }
    s.print(String((char *)payload));
    Serial.println();     
   }
}

应用程序启动,但在消息区域中显示错误:

  

[错误] App.open:0秒后在taskList中找不到   (/Applications/Calculator.app)   Screenshot

1 个答案:

答案 0 :(得分:0)

这是一个错误。 我向sikuli错误跟踪器报告了此问题,开发人员修复了该问题,并发布了新版本(2018-12-14_08:11(Build 148))