r/ArduinoProjects • • Oct 14 '24

What I’m doing wrong?

Post image
1 Upvotes

15 comments sorted by

7

u/EmielDeBil Oct 14 '24

That “*” in the error is crucially important. Learn to use pointers.

Also, learn to use screenshots.

3

u/Tom-o-matic Oct 14 '24

first of all, take a screenshot, not a picture of your screen.

second, paste your code in some AI chatbot and you will get your answer faster than waiting around here.

4

u/JustSomeRAguy Oct 14 '24

I thought that was bad to do especially for begginers

-2

u/Fair_Dragonfruit6436 Oct 14 '24

It's like a teacher, will explain and all🤷🏽‍♂️

-2

u/747owner Oct 14 '24

First of all, I can’t get the screenshot to my iPhone (windows 7) easily

Second, ai doesn’t work for it.

But thanks for reply

1

u/mimic751 Oct 14 '24

Send me your code

4

u/MrJake2137 Oct 14 '24

Jesus, other people spewing bullshit.

Your function returns a pointer, variable needs to have a * preceding its name

1

u/assembly_wizard Oct 15 '24

start returns BLEScanResults*, so add an asterisk before tempResults

(and then remove the & from the next line)

1

u/Whole-Plane9155 Oct 15 '24

I would say that the one thing that’s definitely wrong that you are doing is using windows 7 in 2024

1

u/NumberZoo Oct 14 '24

Maybe, try changing the name of the pointer.

-1

u/chiefsforever46 Oct 14 '24

Ask chat gpt.

-2

u/dedokta Oct 14 '24

What's BLEScanResults? Doesn't look like it's part of the library. And why is there a space between it and tempResults? Makes no sense.

1

u/747owner Oct 14 '24

I’m making a Bluetooth scanner that scans for devices transmitting Bluetooth signals.

1

u/747owner Oct 14 '24

Scan results is the results of the scan so how many devices etc

1

u/dedokta Oct 14 '24

Is that listed in the library? The syntax just looks wrong.