Files
bacnet_stack/ports/esp32
Steve Karg eedfa58a55 Feature/refactor bacnet ipv4 add unit tests (#64)
* refactor BACnet/IPv4 BVLC into encode-decode library with unit tests
Added Read-Broadcast-Distribution-Table encoding and unit test.
Added Read-Broadcast-Distribution-Table-Ack encoding and unit test.
Added Read-Foreign-Device-Table-Ack encoding and unit test.
Added some BDT/FDT diff copy functions with unit tests
Added some FDT add and delete entry functions with unit tests
Added some BDT set append and clear entry functions with unit tests
Added some BIPv4 address conversion functions with unit tests
Added non-BBMD handling unit test
Added basic unit test for BBMD handler
Added BBMD broadcast mask get set and unit tests
Added IPv6 maintenance timer.
Added ReadFDT app
Fixed ReadBDT app
Added Who-Is to Makefile for individual app build
Fixed debugging code blocks projects by swapping bip.c for h_bbmd.c module.
Ported BACnet/IPv4 to refactored BVLC for Linux, BSD, Windows
Fix datalink debug for DLENV module
Improve BIPv4 linux driver debug info
Added BDT mask functions
Reduce debug info clutter in Who-Is app by using environment option
Fix TTL seconds upper bounds addition
Fix CIDR prefix calculation on Linux BIPv4.
Convert BSD BIPv4 to BVLCv4
Fix CMake build for BIPv4 (Linux, BSD, Windows)
Added [U]nsigned to 0xBAC0 constants
Cleanup POSIX and Win32 API sockets
Remove unnecessary file scope variable initialization
Fix routed NPDU to depend on datalink; fix warning
Remove OS dependent network code from gateway
Enable BBMD client in library by default
Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
Co-authored-by: Steve Karg <steve.karg@legrand.us>
2020-04-04 11:31:54 -05:00
..
2019-10-08 23:47:53 -05:00

Bacnet Server for Espressif ESP32
	Steve Karg Bacnet stack using PlatformIO open source ecosystem for IoT development on VSCode or Atom
	F. Chaxel 2017

TODO list :

(Install VSCode or Atom and add the PlatformIO extension)

Edit platformio.ini to adjust board, Com Port, ...

Goto lib/stack and copy the requested files from Steve code :

   all .h from include directory (not all required by it's simple)

   these .c files from src or demo/handlers
	abort.c
	address.c
	apdu.c
	bacaddr.c
	bacapp.c
	bacdcode.c
	bacerror.c
	bacint.c
	bacreal.c
	bacstr.c
	bip.c
	bvlc.c
	cov.c
	datetime.c
	bacdevobjpropref.c
	dcc.c
	debug.c
	h_cov.c
	h_ucov.c
	h_npdu.c
	h_rp.c
	h_rpm.c
	h_whois.c
	h_wp.c
	iam.c
	lighting.c
	memcopy.c
	noserv.c
	npdu.c
	proplist.c
	reject.c
	rp.c
	rpm.c
	s_iam.c
	tsm.c
	whois.c
	wp.c

Modify
	in config.h
		MAX_TSM_TRANSACTIONS 255, set the value to 10 for instances 
	in main.c
		wifi_config to fit your wifi network
		BACNET_LED 5, set another IO number depending of your board

A lot of Warning will be issued at compile time due to the redefinition of BIT macros.
Could be removes by placing a #ifndef #BIT0 .. #endif arround the BIT macro in bits.h, 
and moving to the top of include list
	#include "bacnet/datalink/datalink.h" in tsm.c, s_iam and in device.c
	#include "bacport.h" in bip.c and in bip.h (redondant include in bip.c)
	#include "bacnet/datalink/bvlc.h" in bvlc.c