mirror of
https://github.com/jjshoots/RemoteIDSpoofer.git
synced 2026-04-10 15:28:47 +00:00
files organization, add linux scripts
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
/* -*- tab-width: 2; mode: c; -*-
|
||||
*
|
||||
*
|
||||
* C++ class for Arduino to function as a wrapper around opendroneid.
|
||||
* This file has the ESP8266 specific code.
|
||||
*
|
||||
* Copyright (c) 2022, Steve Jack.
|
||||
*
|
||||
* Nov. '22: Split out from id_open.cpp.
|
||||
* Nov. '22: Split out from id_open.cpp.
|
||||
*
|
||||
* MIT licence.
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#define DIAGNOSTICS 0
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "id_open.h"
|
||||
|
||||
#if ID_OD_WIFI
|
||||
#if ID_OD_WIFI
|
||||
|
||||
#include <ESP8266WiFi.h>
|
||||
|
||||
@@ -64,11 +64,11 @@ void init2(char *ssid,int ssid_length,uint8_t *WiFi_mac_addr,uint8_t wifi_channe
|
||||
#if ID_OD_WIFI
|
||||
|
||||
softap_config wifi_config;
|
||||
|
||||
|
||||
WiFi.mode(WIFI_OFF);
|
||||
|
||||
WiFi.macAddress(WiFi_mac_addr);
|
||||
|
||||
|
||||
WiFi.softAP(ssid,NULL,wifi_channel,false,0);
|
||||
WiFi.setOutputPower(20.0);
|
||||
|
||||
@@ -77,7 +77,7 @@ void init2(char *ssid,int ssid_length,uint8_t *WiFi_mac_addr,uint8_t wifi_channe
|
||||
// wifi_softap_set_config(&wifi_config);
|
||||
|
||||
if (Debug_Serial) {
|
||||
|
||||
|
||||
sprintf(text,"esp_read_mac(): %02x:%02x:%02x:%02x:%02x:%02x\r\n",
|
||||
WiFi_mac_addr[0],WiFi_mac_addr[1],WiFi_mac_addr[2],
|
||||
WiFi_mac_addr[3],WiFi_mac_addr[4],WiFi_mac_addr[5]);
|
||||
@@ -96,7 +96,7 @@ void init2(char *ssid,int ssid_length,uint8_t *WiFi_mac_addr,uint8_t wifi_channe
|
||||
uint8_t *capability() {
|
||||
|
||||
static uint8_t capa[2] = {0x11,0x00};
|
||||
|
||||
|
||||
return capa;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ int tag_rates(uint8_t *beacon_frame,int beacon_offset) {
|
||||
beacon_frame[beacon_offset++] = 0x82; // 1
|
||||
beacon_frame[beacon_offset++] = 0x84; // 2
|
||||
beacon_frame[beacon_offset++] = 0x0c; // 6
|
||||
beacon_frame[beacon_offset++] = 0x18; // 12
|
||||
beacon_frame[beacon_offset++] = 0x18; // 12
|
||||
beacon_frame[beacon_offset++] = 0x30; // 24
|
||||
beacon_frame[beacon_offset++] = 0x60; // 48
|
||||
|
||||
@@ -124,10 +124,10 @@ int tag_ext_rates(uint8_t *beacon_frame,int beacon_offset) {
|
||||
|
||||
beacon_frame[beacon_offset++] = 0x32;
|
||||
beacon_frame[beacon_offset++] = 0x04;
|
||||
beacon_frame[beacon_offset++] = 0x6c; // 54
|
||||
beacon_frame[beacon_offset++] = 0x12; // 9
|
||||
beacon_frame[beacon_offset++] = 0x24; // 18
|
||||
beacon_frame[beacon_offset++] = 0x48; // 36
|
||||
beacon_frame[beacon_offset++] = 0x6c; // 54
|
||||
beacon_frame[beacon_offset++] = 0x12; // 9
|
||||
beacon_frame[beacon_offset++] = 0x24; // 18
|
||||
beacon_frame[beacon_offset++] = 0x48; // 36
|
||||
|
||||
return beacon_offset;
|
||||
}
|
||||
2
build.sh
Executable file
2
build.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
arduino-cli compile --fqbn esp8266:esp8266:nodemcuv2 RemoteIDSpoofer/RemoteIDSpoofer.ino --clean
|
||||
@@ -1,10 +0,0 @@
|
||||
name=id_open
|
||||
version=1.2
|
||||
author=Steve Jack
|
||||
maintainer=Steve Jack
|
||||
sentence=Arduino/ESP32 opendroneid.
|
||||
paragraph=Arduino/ESP32 library to act as a wrapper around opendroneid.
|
||||
category=Uncategorized
|
||||
url=https://github.com/sxjack/uav_electronic_ids/tree/main/id_open
|
||||
architectures=esp32,esp8266,rp2040,nrf52
|
||||
includes=id_open.h
|
||||
Reference in New Issue
Block a user