Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please provide a tutorial on esp32? #22

Open
h0e4a0r1t opened this issue Sep 11, 2023 · 23 comments
Open

Can you please provide a tutorial on esp32? #22

h0e4a0r1t opened this issue Sep 11, 2023 · 23 comments

Comments

@h0e4a0r1t
Copy link

Can you please provide a tutorial on esp32?

@ckcr4lyf
Copy link

@h0e4a0r1t what kind of tutorial are you looking for? Do you have an ESP32 already and a setup to program it eg. PlatformIO / Arduino IDE?

@ckcr4lyf
Copy link

@David12228 which ESP32, and what framework are you using for it?

@ckcr4lyf
Copy link

What happens when you try and flash it? Any errors in the IDE?

@ckcr4lyf
Copy link

That is expected, the code for the ESP32 does exactly this in a forever loop:

void loop() {
// Start advertising
Serial.println("Sending Advertisement...");

I don't see any problem, it means it is working as expected.

If you're not seeing notifications, you can try changing the deviceType or advType params:

int deviceType = 4; // 1 for Airpods, 2 for Airpods Pro, 3 for Airpods Max, 4 for...
int delaySeconds = 2; // delay in seconds
int advType = 2;

@h0e4a0r1t
Copy link
Author

I succeeded, but it only pops up once

@ckcr4lyf
Copy link

If you want it to be more spammy, you can check out my derived work https://github.com/ckcr4lyf/EvilAppleJuice-ESP32/

This repo is more as a PoC, so it doesn't change for example the source MAC, and then I think iPhones won't keep popping up new notifications.

@ckcr4lyf
Copy link

It's mentioned in the README, i've done my testing on an ESP32-C3 from AirM2M

@ckcr4lyf
Copy link

I think it may be an issue with the WROOM module, a user of my repo has outlined some differences between them here: ckcr4lyf/EvilAppleJuice-ESP32#2

It seems the BLE capabilities are a bit different, which could be a reason.

@armanware
Copy link

I'm getting an errors every time I try to compile:

Compilation error: redefinition of 'BLEAdvertising pAdvertising' and many other redefinition errors.

Any Idea what's happening?
Thanks

17013236794174920711183603087674
17013237447996913334976552303364

@ckcr4lyf
Copy link

@armanware it may be because you have two of the ino files, so in your directory everything is defined twice:
image

I am not 100% sure, since I've not used the Arduino IDE. Can you try to use Visual Studio Code w/ the PlatformIO extension?

@armanware
Copy link

@armanware it may be because you have two of the ino files, so in your directory everything is defined twice: image

I am not 100% sure, since I've not used the Arduino IDE. Can you try to use Visual Studio Code w/ the PlatformIO extension?

I will try with Visual Studio instead, I think the codes are not 100% compatible with Arduino IDE language. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@ckcr4lyf @h0e4a0r1t @armanware and others