Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Espconn delenda est #3006

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
14c1b8f
Lua 5.1 to 5.3 realignement phase 1
TerryE Jul 18, 2019
ba03cb0
Add telnet example
TerryE Jul 19, 2019
bc98174
Updates following JM review
TerryE Jul 19, 2019
39bb60e
Rebased against current dev
TerryE Jul 23, 2019
522b1d0
Rebased against current dev, tweaks for clean compile
TerryE Jul 23, 2019
fff9f95
Merge pull request #2836 from TerryE/dev-new-lua.c
TerryE Sep 7, 2019
32ad759
Add streaming support for hx711 device (#2793)
pjsg Sep 10, 2019
4c3d45e
Revert "Add streaming support for hx711 device (#2793)" (#2914)
marcelstoer Sep 13, 2019
81e213a
Remove superfluous module def
marcelstoer Sep 21, 2019
04287ac
Fix invalid smartconfig include
marcelstoer Sep 29, 2019
043046d
Deprecate crypto.to{Hex,Base64} (#2929)
nwf Sep 30, 2019
f3044e1
Fix typos
marcelstoer Oct 30, 2019
0e34f7d
fix lfs upload issue
Nov 13, 2019
f3b4984
Merge pull request #2961 from seregaxvm/lfsfix
TerryE Nov 14, 2019
e3935de
Improve MQTT documentation (#2967)
stromnet Nov 21, 2019
9a2579d
Improve httpserver documentation (#2971)
HHHartmann Nov 26, 2019
c7d0f83
Update sensor driver for BME680 to 3.5.9 (#2969)
vsky279 Dec 9, 2019
b179f30
Fixes for `ws2812` and `ws2812_effects` (#2953)
HHHartmann Dec 9, 2019
4fc2b85
Streaming support for hx711 (#2915)
marcelstoer Dec 9, 2019
f85c278
New `net.if.info` call to show LwIP information (#2862)
nwf Dec 9, 2019
d84da36
fixed missing forward declaration (#2975)
glumanda Dec 13, 2019
bf8f14b
SSL rampage (#2938)
nwf Dec 27, 2019
52a1587
Initial version of software UART C module (#2673)
galjonsfigur Dec 27, 2019
1652c0c
Add DCC decoder module (#2905)
vsky279 Dec 28, 2019
bcb669a
Polish Lua examples (#2846)
galjonsfigur Dec 30, 2019
7ed3d00
Minor typo and wording fixes (#2991)
mk-pmb Jan 1, 2020
8c08e76
Add CRC check (#2992)
vsky279 Jan 2, 2020
5278944
Fix compile warning and set correct order in module LROT (#2996)
galjonsfigur Jan 3, 2020
1c83f02
Expose CPU CCOUNT register as tmr function (#2906)
fikin Jan 4, 2020
5c61a9a
Remove unused espconn code, take 1
nwf Jan 5, 2020
7e84d1c
De-orbit espconn_gethostbyname
nwf Jan 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 18 additions & 2 deletions .gdbinitlua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set pagination off
set print null-stop

define prTS
set $o = &(((TString *)($arg0))->tsv)
set $o = &(((TString *)(($arg0).value))->tsv)
printf "Common header: next = %p, marked = 0x%01x\n", $o->next, $o->marked
printf "String: hash = 0x%08x, len = %u : %s\n", $o->hash, $o->len, (char *)(&$o[1])
printf "String: hash = 0x%08x, len = %u : %s\n", $o->hash, $o->len, (char *)($o+1)
end

define prTnodes
Expand All @@ -24,6 +24,18 @@ define prTnodes
set $i = $i +1
end
end

define prTarray
set $o = (Table *)($arg0)
set $n = $o->sizearray
set $i = 0
while $i < $n
set $nd = ($o->array) + $i
prTV $nd
set $i = $i +1
end
end

define prTV
if $arg0
set $type = ($arg0).tt
Expand Down Expand Up @@ -78,6 +90,10 @@ define prTV
end
if $type == 9
# UserData
set $o = &($val->gc.u.uv)
printf "Common header: next = %p, marked = 0x%01x\n", $o->next, $o->marked
printf "UD = %p Userdata: metatable = ", ($o+1))
print ($o)->metatable
end
if $type == 10
# Thread
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tools/toolchains/
.project
.settings/
.vscode
.vs

#ignore temp file for build infos
buildinfo.h
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ addons:
packages:
- python-serial
- srecord
- luarocks
cache:
- directories:
- cache
Expand All @@ -33,4 +34,5 @@ script:
- echo "checking:"
- find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 echo
- find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 $LUACC -p
# - if [ "$OS" = "linux" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/run-luacheck.sh || true ; fi
- if [ "$OS" = "linux" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/run-luacheck-linux.sh; fi
- if [ "$OS" = "windows" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/run-luacheck-windows.sh; fi
4 changes: 1 addition & 3 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ SUBDIRS= \
libc \
lua \
lwip \
task \
smart \
modules \
spiffs \
Expand Down Expand Up @@ -64,8 +63,7 @@ COMPONENTS_eagle.app.v6 = \
user/libuser.a \
crypto/libcrypto.a \
driver/libdriver.a \
platform/libplatform.a \
task/libtask.a \
platform/libplatform.a \
libc/liblibc.a \
lua/liblua.a \
lwip/liblwip.a \
Expand Down
12 changes: 5 additions & 7 deletions app/coap/endpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,18 @@ static int handle_post_function(const coap_endpoint_t *ep, coap_rw_buffer_t *scr
return coap_make_response(scratch, outpkt, NULL, 0, id_hi, id_lo, &inpkt->tok, COAP_RSPCODE_NOT_FOUND, COAP_CONTENTTYPE_NONE);
}

extern int lua_put_line(const char *s, size_t l);

static const coap_endpoint_path_t path_command = {2, {"v1", "c"}};
static int handle_post_command(const coap_endpoint_t *ep, coap_rw_buffer_t *scratch, const coap_packet_t *inpkt, coap_packet_t *outpkt, uint8_t id_hi, uint8_t id_lo)
{
if (inpkt->payload.len == 0)
return coap_make_response(scratch, outpkt, NULL, 0, id_hi, id_lo, &inpkt->tok, COAP_RSPCODE_BAD_REQUEST, COAP_CONTENTTYPE_TEXT_PLAIN);
if (inpkt->payload.len > 0)
{
char line[LUA_MAXINPUT];
if (!coap_buffer_to_string(line, LUA_MAXINPUT, &inpkt->payload) &&
lua_put_line(line, strlen(line))) {
NODE_DBG("\nResult(if any):\n");
system_os_post (LUA_TASK_PRIO, LUA_PROCESS_LINE_SIG, 0);
char line[LUA_MAXINPUT+1];
if (!coap_buffer_to_string(line, LUA_MAXINPUT, &inpkt->payload)) {
int l = strlen(line);
line[l] = '\n';
lua_input_string(line, l+1);
}
return coap_make_response(scratch, outpkt, NULL, 0, id_hi, id_lo, &inpkt->tok, COAP_RSPCODE_CONTENT, COAP_CONTENTTYPE_TEXT_PLAIN);
}
Expand Down
7 changes: 0 additions & 7 deletions app/crypto/digests.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
#include <strings.h>
#include <errno.h>

#ifdef MD2_ENABLE
#include "ssl/ssl_crypto.h"
#endif

#ifdef SHA2_ENABLE
#include "sha2.h"
#endif
Expand All @@ -60,9 +56,6 @@ typedef char ensure_int_and_size_t_same[(sizeof(int)==sizeof(size_t)) ? 0 : -1];

static const digest_mech_info_t hash_mechs[] ICACHE_RODATA_ATTR =
{
#ifdef MD2_ENABLE
MECH(MD2, _ , MD2_SIZE, 16),
#endif
MECH(MD5, , MD5_DIGEST_LENGTH, 64)
,MECH(SHA1, , SHA1_DIGEST_LENGTH, 64)
#ifdef SHA2_ENABLE
Expand Down
2 changes: 1 addition & 1 deletion app/driver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ifndef PDIR
GEN_LIBS = libdriver.a
endif

STD_CFLAGS=-std=gnu11 -Wimplicit
STD_CFLAGS=-std=gnu11 -Wimplicit -Wall

#############################################################
# Configuration i.e. compile options etc.
Expand Down
Loading