[ISSUE] Incorrect "problems" reported by Intellisense for BLE APIs

I’ve gone through the steps in Intellisense: Report Issues Here. Here is a ZIP file of a minimal project that causes the issue and the output of the C/C++ log and Particle Audit Log:
https://drive.google.com/drive/folders/1wpXPd9YJ6pCehgP0L62HGPnthLGrLxAT?usp=sharing

Steps to reproduce:

  1. Click “Create new project” in Particle Workbench page
  2. Open main “intellisense-issue-test.ino" file.
  3. Add following code to setup() function:
  BleCharacteristic characteristic;
  uint8_t packet[] = {0x00};
  characteristic.setValue(packet, 1);
  1. See following error in PROBLEMS tab:
  no instance of overloaded function "particle::BleCharacteristic::setValue" matches the argument list -- argument types are: (uint8_t [1], int) -- object type is: particle::BleCharacteristic
  1. Verify that code compiles successfully and without warnings.
1 Like

wow thanks for the great report @jluxenberg :pray:

could you try using deviceOS@1.4.1-rc.1 and see if that improves things any?

Thanks @m_m!

could you try using deviceOS@1.4.1-rc.1 and see if that improves things any?

Just tried and this fixes the issue!

1 Like

ah, great to hear! i tweaked how our intellisense config settings are being generated - from v1.4.1-rc-1 forward they should be much more reliable. thanks for the report, sorry for the bumps :pray: :+1: