Skip to content

Commit

Permalink
Merge pull request #33 from VonSzarvas/master
Browse files Browse the repository at this point in the history
Updated to support BadgeWX product (#20300).
  • Loading branch information
PropGit authored Mar 12, 2019
2 parents 5c340ae + 64e7655 commit 59521b7
Show file tree
Hide file tree
Showing 10 changed files with 370 additions and 89 deletions.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Version number notes!
# Before building release version, bump the version number thus:
#
# 1. Tag the master with: git tag -a v1.1 then enter an annotation message (it's like a commit message)
# 2. The above snippet used v1.1 as example..... change that v number to whatever you need!
# 3. Then try: git describe to see what version is displayed
# 4. Then run make in usual way


#You can build this example in three ways:
# 'separate' - Separate espfs and binaries, no OTA upgrade
# 'combined' - Combined firmware blob, no OTA upgrade
Expand All @@ -17,7 +26,10 @@ OUTPUT_TYPE=ota
# commit is the number of commits since the last tag
# date is the date of the build
# hash is a unique substring of the hash of the last commit
GITDESC=$(shell git describe master)

# Ensure --long tag added: GITDESC=$(shell git describe --long master)

GITDESC=$(shell git describe --long master)
GITDESC_WORDS=$(subst -, ,$(GITDESC))
GIT_VERSION=$(word 1,$(GITDESC_WORDS))
GIT_COMMIT=$(word 2,$(GITDESC_WORDS))
Expand All @@ -28,6 +40,7 @@ else
GIT_COMMIT_HASH_SUFFIX=$(subst -, ,-$(GIT_COMMIT))-$(GIT_HASH)
endif
VERSION=$(GIT_VERSION) ($(shell date "+%Y-%m-%d %H:%M:%S")$(GIT_COMMIT_HASH_SUFFIX))
#VERSION=1.1 ($(shell date "+%Y-%m-%d %H:%M:%S")$(GIT_COMMIT_HASH_SUFFIX))
$(info VERSION $(VERSION))

#SPI flash size, in K
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ Check out the submodules of Parallax-ESP:
git submodule init
git submodule update

Build the firmware (from the Parallax-ESP directory):
Build the firmware (from the Parallax-ESP directory) for Parallax WX Module:

make

Build the firmware (from the Parallax-ESP directory) for Parallax BadgeWX Module:

make EXTRA_CFLAGS=-DAUTO_LOAD

# Discovery Protocol

Here is a description of the discovery protocol used by the WX module:

1) PropLoader broadcasts a UDP packet to port 32420. The packet contains a single 32 bit
Expand Down
Loading

0 comments on commit 59521b7

Please sign in to comment.