Skip to content

Commit

Permalink
build files for Digi WiFi s6b EnviroDIY#347
Browse files Browse the repository at this point in the history
  • Loading branch information
neilh20 authored and neilh20 committed Jun 21, 2023
1 parent de3ad06 commit 4123f6a
Show file tree
Hide file tree
Showing 9 changed files with 1,631 additions and 0 deletions.
127 changes: 127 additions & 0 deletions a/DRWI_SIM7080LTE/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -3
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
AlignOperands: false
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Leave
EmptyLineBeforeAccessModifier: Leave
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: 'TinyGsmClient.h'
Priority: -1
- Regex: 'VariableBase.h'
Priority: -1
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: Indent
IndentGotoLabels: true
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
# ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: CurrentLine
PenaltyBreakAssignment: 25
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 600
PenaltyReturnTypeOnItsOwnLine: 50
PointerAlignment: Left
PointerBindsToType: true
QualifierAlignment: Left
ReferenceAlignment: Left
ReflowComments: true
SeparateDefinitionBlocks: Leave
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInLineCommentPrefix:
Minimum: 1
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never
---
109 changes: 109 additions & 0 deletions a/DRWI_SIM7080LTE/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
~*

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# PyCharm
.idea/

# Atom / PlatformIO
.pio
.pio_del
.pioenvs
.piolibdeps
.pio
.pio/libdeps
.pio/build
.pio/*
.clang_complete
.gcc-flags.json
.atomrc.cson
lib/*
include/*
.sconsign.dblite

# VSCode
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode
.history

# Other
compile_tests/
logger_test*/
YosemitechDO/
LongTermLogger/
barometric_correction/
3G_Test/

__pycache__/
runDoxygen.bat
docs/examples/*
output_doxygen.log
output_doxygen_run.log
output_mcss_run.log
output_mcss.log
docs/examples.dox_x
platformio_extra_envs.ini
src/sensors/table.md
cache
docs/output_copyFunctions.log
docs/output_documentExamples.log
docs/output_fixSectionsInXml.log
examples/DRWI_Mayfly1_Wifi_5tm_ds18b20_1/DRWI_Mayfly1_Wifi_5tm_ds18b20_1.ino
clang_format_all.bat
arduino_lint.md
arduino_lint.json
**/home/arduino/*
examples/test_code/*
compile_results.md
arduino_cli_log.log
continuous_integration/arduino_cli_local.yaml
compile_results.log
continuous_integration_artifacts/*
arduino_cli.log
2 changes: 2 additions & 0 deletions a/DRWI_SIM7080LTE/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DRWI Sites with EnviroDIY LTE Bees
Development Build from local ModularSensors/src directories
119 changes: 119 additions & 0 deletions a/DRWI_SIM7080LTE/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
; https://envirodiy.github.io/ModularSensors/page_for_developers.html

[platformio]
description = ModularSensors alpha build for DRWI on local sensors and a WiFi or EnviroDIY SIM7080G LTE modem
default_envs = mayfly
;src_dir = src

[env]
monitor_speed = 115200 ;57600
framework = arduino
; deep search for dependencies, evalulating preprocessor conditionals
lib_ldf_mode = deep+
; look for the library director
lib_extra_dirs = .
; We have to ignore these folders or PlatformIO will double count all the dependencies
lib_ignore =
.git
.pio
.vscode
doc
examples
sensor_tests
extras
build
RTCZero
Adafruit NeoPixel
Adafruit GFX Library
Adafruit SSD1306
Adafruit ADXL343
Adafruit STMPE610
Adafruit TouchScreen
Adafruit ILI9341
; All these library dependencies must be listed out since we're in the library
; source code and won't read the dependencies from the library.json like a
; typical user would
lib_deps =
envirodiy/EnviroDIY_DS3231
arduino-libraries/RTCZero
greygnome/EnableInterrupt
greiman/SdFat
;vshymanskyy/TinyGSM
https://github.com/neilh10/TinyGSM#iss347_digi_wifi_s6b_becomes_unstable
knolleary/PubSubClient
adafruit/Adafruit BusIO
adafruit/Adafruit Unified Sensor
https://github.com/soligen2010/Adafruit_ADS1X15.git
adafruit/Adafruit AM2315
adafruit/Adafruit BME280 Library
adafruit/DHT sensor library
adafruit/Adafruit INA219
adafruit/Adafruit MPL115A2
adafruit/Adafruit SHT4x Library
https://github.com/MartinL1/BMP388_DEV
paulstoffregen/OneWire
milesburton/DallasTemperature
envirodiy/SDI-12
northernwidget/MS5803
https://github.com/EnviroDIY/Tally_Library.git#Dev_I2C
envirodiy/SensorModbusMaster
envirodiy/KellerModbus
envirodiy/YosemitechModbus
vshymanskyy/StreamDebugger
; The directories for the ModularSensors library source code
build_src_filter = +<*> +<../../../src> +<../../../src/sensors> +<../../../src/publishers> +<../../../src/modems>


; Some common build flags
build_flags =
-Isrc
-I../../src ; .h For easy debug
-I../../src/sensors ; .h For easy debug
-Ilib/TinyGSM/src
-D SDI12_EXTERNAL_PCINT
-D NEOSWSERIAL_EXTERNAL_PCINT
-D MQTT_MAX_PACKET_SIZE=240
-D TINY_GSM_RX_BUFFER=64
-D TINY_GSM_YIELD_MS=2
;-D STREAMDEBUGGER_DBG
;-D TinyGsmClientXbee_DBG=Serial
;-D MS_DIGIXBEEWIFI_DEBUG
;-D MS_DIGIXBEE_DEBUG
;-D MS_LOGGERMODEM_DEBUG
;extra_scripts = pre:pioScripts/generate_compile_commands.py



[env:mayfly]
board = mayfly
platform = atmelavr

lib_deps = ${env.lib_deps}
; envirodiy/EnviroDIY_ModularSensors
; ^^ Use this when working from an official release of the library
;https://github.com/neilh10/ModularSensors.git#develop
;https://github.com/neilh10/ModularSensors.git#dvlp_batch_build
; ^^ Use this when if you want to pull from the develop branch
https://github.com/EnviroDIY/SoftwareSerial_ExternalInts.git
https://github.com/PaulStoffregen/AltSoftSerial.git
https://github.com/SRGDamia1/NeoSWSerial.git

lib_ignore =
${env.lib_ignore}
RTCZero
Adafruit Zero DMA Library

build_flags =
${env.build_flags}
-D STANDARD_SERIAL_OUTPUT=Serial
-D DEBUGGING_SERIAL_OUTPUT=Serial
-D DEEP_DEBUGGING_SERIAL_OUTPUT=Serial
Loading

0 comments on commit 4123f6a

Please sign in to comment.