@m_m I’ve followed your instructions and it still failing.
I just tried 1.3.1 and it works fine.
*** WARNING: MAY CONTAIN CONFIDENTIAL INFORMATION - PLEASE SANITIZE BEFORE SHARING ***
To report an issue, visit:
https://community.particle.io/t/information-how-to-report-bugs-and-provide-feedback/44245
{
"username": null,
"workspace": {
"name": "LegoBT",
"isWorkspace": false,
"folders": [
{
"location": "c:\\programming\\workspaces\\vscprojects\\blinky\\LegoBT",
"hasValidPath": true,
"settings": {
"firmwareName": "deviceOS",
"firmwareVersion": "1.4.0-rc.1",
"targetDevice": "",
"targetPlatform": "argon",
"compileButtonAction": "localAppDeviceOS",
"flashButtonAction": "localAppDeviceOS",
"disableWelcomeScreen": false,
"disableLocalCompilerDirtyCheck": false,
"enableVerboseLocalCompilerLogging": true
},
"files": [
".vscode",
".vscode\\launch.json",
".vscode\\settings.json",
".vscode\\tasks.json",
"project.properties",
"README.md",
"src",
"src\\LegoBT.cpp",
"src\\LegoBT.ino",
"target",
"target\\LegoBT.bin",
"target\\LegoBT.bin.crc_block",
"target\\LegoBT.bin.no_crc",
"target\\LegoBT.elf",
"target\\LegoBT.hex",
"target\\LegoBT.lst",
"target\\LegoBT.map",
"target\\obj"
]
}
]
},
"cli": {
"binpath": "c:\\Users\\steve\\.vscode\\extensions\\particle.particle-vscode-core-1.5.3\\src\\cli\\bin\\windows\\amd64\\particle.exe",
"ok": true,
"version": "1.46.2",
"installed": 1565306788036
},
"localCompiler": {
"ok": true,
"dependencies": [
{
"id": "deviceOS@1.4.0-rc.1",
"ok": true
},
{
"id": "gcc-arm@5.3.1",
"ok": true
},
{
"id": "buildtools@1.1.0",
"ok": true
},
{
"id": "buildscripts@1.6.1",
"ok": true
},
{
"id": "openocd@0.11.1-adhoc6ea4372.0",
"ok": true
},
{
"id": "deviceOS@1.3.1",
"ok": true
},
{
"id": "deviceOS@1.3.1-rc.1",
"ok": true
},
{
"id": "deviceOS@1.3.0-rc.1",
"ok": true
},
{
"id": "deviceOS@1.2.1-rc.2",
"ok": true
},
{
"id": "deviceOS@1.2.1-rc.1",
"ok": true
},
{
"id": "deviceOS@1.2.0-beta.1",
"ok": true
},
{
"id": "deviceOS@1.1.0",
"ok": true
},
{
"id": "deviceOS@1.0.1",
"ok": true
},
{
"id": "deviceOS@1.0.0",
"ok": true
},
{
"id": "deviceOS@0.9.0",
"ok": true
},
{
"id": "deviceOS@0.8.0-rc.27",
"ok": true
},
{
"id": "deviceOS@0.7.0",
"ok": true
}
]
},
"platform": {
"os": "windows",
"type": "Windows_NT",
"release": "10.0.17763",
"arch": "x64",
"path": {
"key": "Path",
"value": "C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\TortoiseGit\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\AOMEI Backupper;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\programming\\SI\\nodejs\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\programming\\SI\\GNU Tools ARM Embedded\\5.4 2016q3\\bin;C:\\programming\\SI\\python\\Scripts\\;C:\\programming\\SI\\python\\;C:\\Users\\steve\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\steve\\AppData\\Local\\particle\\bin;C:\\programming\\SI\\Microsoft VS Code\\bin;C:\\Users\\steve\\AppData\\Local\\particledev\\bin;C:\\Users\\steve\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\steve\\AppData\\Roaming\\npm;C:\\OpenSSL-Win32\\bin"
},
"homeDir": "C:\\Users\\steve",
"particleDir": "C:\\Users\\steve\\.particle",
"localCompilerToolchainDir": "C:\\Users\\steve\\.particle\\toolchains"
},
"env": {
"ALLUSERSPROFILE": "C:\\ProgramData",
"AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
"APPDATA": "C:\\Users\\steve\\AppData\\Roaming",
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
"CommonProgramFiles": "C:\\Program Files\\Common Files",
"CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
"CommonProgramW6432": "C:\\Program Files\\Common Files",
"COMPUTERNAME": "STEVES2J",
"ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
"DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
"ELECTRON_RUN_AS_NODE": "1",
"GYP_MSVS_VERSION": "2015",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\steve",
"LOCALAPPDATA": "C:\\Users\\steve\\AppData\\Local",
"LOGONSERVER": "\\\\STEVES2J",
"NUMBER_OF_PROCESSORS": "8",
"OneDrive": "C:\\Users\\steve\\OneDrive - S2J Limited",
"OneDriveCommercial": "C:\\Users\\steve\\OneDrive - S2J Limited",
"OneDriveConsumer": "C:\\Users\\steve\\OneDrive",
"OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
"OS": "Windows_NT",
"Path": "C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\TortoiseGit\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\AOMEI Backupper;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\programming\\SI\\nodejs\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\programming\\SI\\GNU Tools ARM Embedded\\5.4 2016q3\\bin;C:\\programming\\SI\\python\\Scripts\\;C:\\programming\\SI\\python\\;C:\\Users\\steve\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\steve\\AppData\\Local\\particle\\bin;C:\\programming\\SI\\Microsoft VS Code\\bin;C:\\Users\\steve\\AppData\\Local\\particledev\\bin;C:\\Users\\steve\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\steve\\AppData\\Roaming\\npm;C:\\OpenSSL-Win32\\bin",
"PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
"PIPE_LOGGING": "true",
"PROCESSOR_ARCHITECTURE": "AMD64",
"PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 158 Stepping 9, GenuineIntel",
"PROCESSOR_LEVEL": "6",
"PROCESSOR_REVISION": "9e09",
"ProgramData": "C:\\ProgramData",
"ProgramFiles": "C:\\Program Files",
"ProgramFiles(x86)": "C:\\Program Files (x86)",
"ProgramW6432": "C:\\Program Files",
"PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
"PUBLIC": "C:\\Users\\Public",
"SESSIONNAME": "Console",
"SystemDrive": "C:",
"SystemRoot": "C:\\WINDOWS",
"TEMP": "C:\\Users\\steve\\AppData\\Local\\Temp",
"TMP": "C:\\Users\\steve\\AppData\\Local\\Temp",
"USERDOMAIN": "STEVES2J",
"USERDOMAIN_ROAMINGPROFILE": "STEVES2J",
"USERNAME": "steve",
"USERPROFILE": "C:\\Users\\steve",
"VERBOSE_LOGGING": "true",
"VS140COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\",
"VSCODE_CWD": "C:\\programming\\SI\\Microsoft VS Code",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "\\\\.\\pipe\\ba5e124dd1125357960fd9955484b079-1.38.0-main-sock",
"VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-9bbdef5f-cf2d-406b-a38c-4e0d3b6ff564-sock",
"VSCODE_LOGS": "C:\\Users\\steve\\AppData\\Roaming\\Code\\logs\\20190906T092803",
"VSCODE_LOG_STACK": "false",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\steve\\AppData\\Roaming\\Code\\CachedData\\3db7e09f3b61f915d03bbfa58e258d6eee843f35",
"VSCODE_PID": "49160",
"VSCODE_PREVENT_FOREIGN_INSPECT": "true",
"windir": "C:\\WINDOWS"
},
"versions": {
"http_parser": "2.8.0",
"node": "10.11.0",
"v8": "6.9.427.31-electron.0",
"uv": "1.23.0",
"zlib": "1.2.11",
"ares": "1.14.0",
"modules": "69",
"nghttp2": "1.33.0",
"napi": "3",
"openssl": "1.1.0",
"icu": "62.2",
"unicode": "11.0",
"cldr": "33.1",
"tz": "2019a"
},
"vscode": {
"appName": "Visual Studio Code",
"appRoot": "c:\\programming\\SI\\Microsoft VS Code\\resources\\app",
"machineId": "9fc7150a1202de7c35403986210eaff37fa7df8967d80483eab96f9badfb2307",
"sessionId": "33189640-2255-4054-aeae-fb89e96443f91567996261197",
"version": "1.38.0"
},
"extensions": [
{
"id": "ms-vscode.node-debug",
"version": "1.38.4"
},
{
"id": "ms-vscode.node-debug2",
"version": "1.33.0"
},
{
"id": "ms-vscode.references-view",
"version": "0.0.30"
},
{
"id": "austin.code-gnu-global",
"version": "0.2.2"
},
{
"id": "dbaeumer.jshint",
"version": "0.10.21"
},
{
"id": "dbaeumer.vscode-eslint",
"version": "1.9.1"
},
{
"id": "marus25.cortex-debug",
"version": "0.3.1"
},
{
"id": "mgmcdermott.vscode-language-babel",
"version": "0.0.23"
},
{
"id": "miramac.vscode-exec-node",
"version": "0.5.1"
},
{
"id": "ms-vscode.cpptools",
"version": "0.25.1"
},
{
"id": "particle.particle-vscode-core",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-pack",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-snippets",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-theme",
"version": "1.5.3"
}
]
}
*** WARNING: MAY CONTAIN CONFIDENTIAL INFORMATION - PLEASE SANITIZE BEFORE SHARING ***
To report an issue, visit:
https://community.particle.io/t/information-how-to-report-bugs-and-provide-feedback/44245
Application code
#include "Particle.h"
SYSTEM_MODE(MANUAL);
SerialLogHandler logHandler(LOG_LEVEL_TRACE);
void setup() {
(void)logHandler; // Does nothing, just to eliminate warning for unused variable
}
void loop() {
Vector<BleScanResult> scanResults = BLE.scan();
if (scanResults.size()) {
Log.info("%d devices found", scanResults.size());
for (int ii = 0; ii < scanResults.size(); ii++) {
Log.info("MAC: %02X:%02X:%02X:%02X:%02X:%02X | RSSI: %dBm",
scanResults[ii].address[0], scanResults[ii].address[1], scanResults[ii].address[2],
scanResults[ii].address[3], scanResults[ii].address[4], scanResults[ii].address[5], scanResults[ii].rssi);
String name = scanResults[ii].advertisingData.deviceName();
if (name.length() > 0) {
Log.info("Advertising name: %s", name.c_str());
}
}
}
delay(3000);
}