Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from Pwnagotchi-Unofficial/development
Browse files Browse the repository at this point in the history
1.1.0 merge
  • Loading branch information
dj1ch authored Nov 26, 2023
2 parents b53df56 + f1c0a39 commit eed27d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minigotchi/minigotchi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ void loop() {
// stop for deauthing and payload
raw.stop();

// send payload
packetSender.sendJsonPayload();
// send payload(10 times)
void sendJsonPayloadMultipleTimes();
delay(5000);

// deauth a random ap
Expand Down
7 changes: 7 additions & 0 deletions minigotchi/packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ void PacketSender::sendJsonPayload() {
Serial.println("Sent payload!");
}
}

void PacketSender::sendJsonPayloadMultipleTimes(int count, int delayBetweenSends) {
for (int i = 0; i < count; ++i) {
sendJsonPayload();
delay(delayBetweenSends);
}
}
1 change: 1 addition & 0 deletions minigotchi/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class PacketSender {
public:
void sendJsonPayload();
void sendJsonPayloadMultipleTimes(int count = 10, int delayBetweenSends = 100);
};

#endif // PACKET_H

0 comments on commit eed27d7

Please sign in to comment.