This commit is contained in:
Klaus K Wilting 2018-11-25 16:35:36 +01:00
parent b85dc829a5
commit 75fb08e72c
21 changed files with 40 additions and 23 deletions

View File

@ -10,23 +10,6 @@
#define MAC_SNIFF_WIFI 0
#define MAC_SNIFF_BLE 1
/*
typedef struct {
unsigned frame_ctrl : 16;
unsigned duration_id : 16;
uint8_t addr1[6]; // receiver address
uint8_t addr2[6]; // sender address
uint8_t addr3[6]; // filtering address
unsigned sequence_ctrl : 16;
uint8_t addr4[6]; // optional
} wifi_ieee80211_mac_hdr_t;
typedef struct {
wifi_ieee80211_mac_hdr_t hdr;
uint8_t payload[0]; // network data ended with 4 bytes csum (CRC32)
} wifi_ieee80211_packet_t;
*/
void wifi_sniffer_init(void);
void IRAM_ATTR wifi_sniffer_packet_handler(void *buff, wifi_promiscuous_pkt_type_t type);
void switchWifiChannel(void * parameter);

View File

@ -6,7 +6,7 @@
; ---> SELECT TARGET PLATFORM HERE! <---
[platformio]
;env_default = generic
env_default = generic
;env_default = ebox
;env_default = eboxtube
;env_default = heltec
@ -14,7 +14,7 @@
;env_default = ttgov1
;env_default = ttgov2
;env_default = ttgov21old
env_default = ttgov21new
;env_default = ttgov21new
;env_default = ttgobeam
;env_default = lopy
;env_default = lopy4
@ -29,7 +29,7 @@ description = Paxcounter is a proof-of-concept ESP32 device for metering passeng
[common]
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
release_version = 1.6.84
release_version = 1.6.85
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
debug_level = 0
@ -39,7 +39,7 @@ upload_protocol = esptool
extra_scripts = pre:build.py
keyfile = ota.conf
;platform_espressif32 = espressif32@1.5.0
platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage
platform_espressif32 = https://github.com/platformio/platform-espressif32.git#a7b1fe6
board_build.partitions = min_spiffs.csv
monitor_speed = 115200
lib_deps_lora =

View File

@ -79,7 +79,7 @@ void gps_loop(void *pvParameters) {
} // end of infinite loop
vTaskDelete(NULL); // shoud never be reached
vTaskDelete(GpsTask); // shoud never be reached
} // gps_loop()

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _EBOX_H
#define _EBOX_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _EBOXTUBE_H
#define _EBOXTUBE_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _FIPY_H
#define _FIPY_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _GENERIC_H
#define _GENERIC_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _HELTEC_H
#define _HELTEC_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _HELTECV2_H
#define _HELTECV2_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _LOLINLITE_H
#define _LOLINLITE_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _LOLINLITELORA_H
#define _LOLINLITELORA_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _LOLINLORA_H
#define _LOLINLORA_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _LOPY_H
#define _LOPY_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _LOPY4_H
#define _LOPY4_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _OCTOPUS_H
#define _OCTOPUS_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _TTGOBEAM_H
#define _TTGOBEAM_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _TTGOV1_H
#define _TTGOV1_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _TTGOV2_H
#define _TTGOV2_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _TTGOV21NEW_H
#define _TTGOV21NEW_H

View File

@ -1,3 +1,5 @@
// clang-format off
#ifndef _TTGOV21OLD_H
#define _TTGOV21OLD_H

View File

@ -190,7 +190,7 @@ void ledLoop(void *parameter) {
// give yield to CPU
vTaskDelay(2 / portTICK_PERIOD_MS);
} // while(1)
vTaskDelete(NULL); // shoud never be reached
vTaskDelete(ledLoopTask); // shoud never be reached
}; // ledloop()
#endif // #if (HAS_LED != NOT_A_PIN) || defined(HAS_RGB_LED)