I am attaching a screen shot from the nRF Connect app showing what it sees. It reads the numeric attributes, but not the string attributes, from each characteristic. In other words, I see 45.46 for the humidity but not the string "Humidity," itself. Instead, I read the UUID number the string is associated with. ble.aia (198.3 KB) Psychrometer1.1.ino (2.3 KB)
The If test on this event is not right.
Did you want to test If permissionName = 'BLUETOOTH_CONNECT'?
Also, using a color literal as a test is tricky.
I have been burnt by this before.
Since color values are 32 bit integers, they have to match exactly, and your eyes may have fooled you into thinking two close but different colors are the same.
I have updated the app and made some changes, Now it is connecting to the app but not receiving data. It is showing this error the " opertion register for strings can not accept arguments [19B10000-E8F2-537E-4F6C-D104768A1214] ["nothing"], [false] "