Dies ist eine alte Version des Dokuments!
Die Hauptkofiguration des BLE-Toolkits findet in der Datei „settings.json“ statt. Die Datei ist JSON formatier, Kommentare sind d.h. nicht möglich. Die Datei wird per Konfigurationstool in die APP integriert. Zum bearbeiten empfiehlt sich eine Editor wie Notepad++ oder der JSON online Editor.
Die Einstellung werden zum Start geladen, falls die Einstellungen fehlerhaft sind, startet die App nicht!
Hier als Beispiel die Standartkonfiguration.
{
"SETTINGS_SCRIPT_INTERNAL":false,
"SETTINGS_VARS_INTERNAL":false,
"SETTINGS_FILE_INTERNAL":false,
"CMD_SCAN": "scan",
"CMD_CONNECT": "connect",
"CMD_SERVICES": "services",
"CMD_INFO": "info",
"CMD_SET": "set",
"CMD_READ": "read",
"CMD_WRITE": "write",
"CMD_FILE_SET": "file-set",
"CMD_FILE_REMOVE": "file-remove",
"CMD_FILE_WRITE": "file-write",
"CMD_FILE_WRITE_BLOCK": "file-write-block",
"CMD_WAIT": "wait",
"CMD_DISCONNECT":"disconnect",
"MSG_ON_ERROR_EXECUTION_GENERIC":"Error in Execution Message is:",
"MSG_ON_ERROR_EXECUTION_NOCMD":"Error - No Command given!",
"MSG_ON_ERROR_EXECUTION_FATAL":"Fatal Error while executing:",
"MSG_ERROR_CMD_NOT_FOUND":"Error - Given command was not found!",
"MSG_ERROR_SERVICE_DISCOVER":"Error - Service discovery failed: ",
"MSG_ON_CONNECTION_ERROR": "Connection failed, Reason: ",
"MSG_ON_SUCCESS_MTU_NEGOTIATE": "Negotiated MTU to: ",
"MSG_ON_SUCCESS_SERVICE_DISCOVER":"Following Services were discovered:",
"MSG_ON_SUCCESS_SET_VAR":"Success: ",
"MSG_ON_SUCCESS_READ_CHAR":"Success:",
"MSG_ON_SUCCESS_WRITE_CHAR":"Success: ",
"MSG_ON_SUCCESS_WRITE_FILE":"Success: ",
"MSG_ON_SUCCESS_LONG_WRITE":"Success:",
"MSG_ON_SUCCESS_FILE_REM":"Success, deleted file",
"MSG_ON_ERROR_FILE_REM":"Error - File not deleted",
"MSG_ON_ERROR_WRITE_FILE_NO_FILE":"No file set!",
"MSG_ON_SUCCESS_EXECUTION":"Execution finished",
"MSG_ERROR_UNHANDABLE":"MSG_ERROR_UNHANDABLE",
"MSG_INFO_PERMISSIONREQ":"Zugriff benötigt!",
"MSG_INFO_PERMISSIONDEN":"Zugriff verwiegert. App wird beendet",
"MSG_INFO_CONNECTION_STATE_CHANGED":"Connection changed to: ",
"UI_NAME_CONSOLE":"UI_NAME_CONSOLE"
}