Click here to Skip to main content
15,901,373 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 1,054 - 2 4 me Pin
pkfox7-May-24 20:21
professionalpkfox7-May-24 20:21 
GeneralRe: Wordle 1,054 Pin
HobbyProggy7-May-24 22:02
professionalHobbyProggy7-May-24 22:02 
GeneralRe: Wordle 1,054 Pin
Sander Rossel7-May-24 22:33
professionalSander Rossel7-May-24 22:33 
GeneralRe: Wordle 1,054 Pin
ChandraRam7-May-24 23:25
ChandraRam7-May-24 23:25 
GeneralRe: Wordle 1,054 Pin
Cp-Coder8-May-24 1:12
Cp-Coder8-May-24 1:12 
GeneralRe: Wordle 1,054 (6/6) Pin
Jeremy Falcon8-May-24 2:51
professionalJeremy Falcon8-May-24 2:51 
GeneralRe: Wordle 1,054 Pin
StarNamer@work8-May-24 3:13
professionalStarNamer@work8-May-24 3:13 
GeneralAn AI experience via Copilot Pin
raddevus7-May-24 16:51
mvaraddevus7-May-24 16:51 
ChatGPT
I’ve used ChatGPT (3.5) numerous times
It has written a few bash scripts for me & done a nice job
But for the most part it has just been passable, nothing special.

Copilot
I had not used copilot until just a few minutes ago.
I needed some info on a Arduino / ESP32 BLE (Bluetooth Low Energy) method pAdvertising->setMinPreferred(0x06);

Since I’ve switched to running MS Edge on all my devices and since copilot is built in I decided to ask it about the method (on my iPad).
Copilot gave me such a detailed, thoughtful and well-written answer I instantly thought “hmm…maybe I will never ask a question on SO again.”
copilot answer:
The line of code pAdvertising->setMinPreferred(0x06); sets the minimum preferred connection interval for Bluetooth Low Energy (BLE) advertising. Let me explain further:
Connection Interval:
The connection interval is the time between two consecutive data exchanges (connection events) between a BLE peripheral (like an ESP32) and a central device (such as a smartphone).
It determines how often the devices communicate during an active connection.

Preferred Connection Interval:
The preferred connection interval is a range (in milliseconds) that the peripheral suggests to the central device.
It indicates the desired frequency of communication.
In this case, 0x06 corresponds to a connection interval of approximately 7.5 ms (hex value multiplied by 1.25 ms).
Why Set Preferred Connection Interval?:
Setting the preferred connection interval can help improve communication efficiency.
Some devices (like iPhones) may ignore this suggestion, but it’s still good practice to set it.

Additional Notes:
The pAdvertising->setMinPreferred(0x06); line is often used in ESP32 code to enhance compatibility with iOS devices.
You might also see pAdvertising->setMaxPreferred(0x12); to set the maximum preferred connection interval1.

Remember that the actual connection interval negotiated during the connection setup may differ based on the central device’s capabilities and the peripheral’s suggestions. 😊

1. Yes it included the smiley and I liked that “personal” touch.
2. If you search the Web and SO and even the official arduino site you will not find this documented so Copilot is amazing.
3. With AI like this, who needs SO. Roll eyes | :rolleyes:
GeneralRe: An AI experience via Copilot Pin
David O'Neil7-May-24 17:35
professionalDavid O'Neil7-May-24 17:35 
GeneralRe: An AI experience via Copilot Pin
RickZeeland7-May-24 19:12
mveRickZeeland7-May-24 19:12 
GeneralRe: An AI experience via Copilot Pin
raddevus8-May-24 1:54
mvaraddevus8-May-24 1:54 
GeneralRe: An AI experience via Copilot Pin
Richard Andrew x648-May-24 3:51
professionalRichard Andrew x648-May-24 3:51 
GeneralRe: An AI experience via Copilot Pin
Richard Deeming7-May-24 21:35
mveRichard Deeming7-May-24 21:35 
GeneralRe: An AI experience via Copilot Pin
BernardIE53178-May-24 0:01
BernardIE53178-May-24 0:01 
GeneralRe: An AI experience via Copilot Pin
raddevus8-May-24 1:57
mvaraddevus8-May-24 1:57 
GeneralRe: An AI experience via Copilot Pin
Richard MacCutchan8-May-24 1:44
mveRichard MacCutchan8-May-24 1:44 
GeneralRe: An AI experience via Copilot Pin
Nelek8-May-24 5:16
protectorNelek8-May-24 5:16 
GeneralRe: An AI experience via Copilot Pin
Amarnath S8-May-24 3:38
professionalAmarnath S8-May-24 3:38 
GeneralRe: An AI experience via Copilot Pin
Choroid9-May-24 9:12
Choroid9-May-24 9:12 
QuestionManual vs computerized business processes. Pin
Amitava_Guha7-May-24 18:24
Amitava_Guha7-May-24 18:24 
AnswerRe: Manual vs computerized business processes. Pin
Daniel Pfeffer7-May-24 21:14
professionalDaniel Pfeffer7-May-24 21:14 
AnswerRe: Manual vs computerized business processes. Pin
theoldfool8-May-24 0:59
professionaltheoldfool8-May-24 0:59 
GeneralRe: Manual vs computerized business processes. Pin
PIEBALDconsult8-May-24 2:32
mvePIEBALDconsult8-May-24 2:32 
GeneralRe: Manual vs computerized business processes. Pin
Amarnath S8-May-24 6:09
professionalAmarnath S8-May-24 6:09 
AnswerRe: Manual vs computerized business processes. Pin
dandy729-May-24 7:02
dandy729-May-24 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   507 votes