mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 09:36:13 +01:00
proto works
This commit is contained in:
parent
19f4869401
commit
64a34b3a32
|
@ -31,7 +31,13 @@
|
||||||
#include "CommandDistributor.h"
|
#include "CommandDistributor.h"
|
||||||
#include "WiThrottle.h"
|
#include "WiThrottle.h"
|
||||||
#include "DCCTimer.h"
|
#include "DCCTimer.h"
|
||||||
#if __has_include ( "MDNS_Generic.h")
|
|
||||||
|
#include "EXmDNS.h"
|
||||||
|
#define DO_MDNS
|
||||||
|
EthernetUDP udp;
|
||||||
|
MDNS mdns(udp);
|
||||||
|
|
||||||
|
#if 0 //#if __has_include ( "MDNS_Generic.h")
|
||||||
#include "MDNS_Generic.h"
|
#include "MDNS_Generic.h"
|
||||||
#define DO_MDNS
|
#define DO_MDNS
|
||||||
EthernetUDP udp;
|
EthernetUDP udp;
|
||||||
|
@ -124,11 +130,9 @@ void EthernetInterface::setup()
|
||||||
|
|
||||||
outboundRing=new RingStream(OUTBOUND_RING_SIZE);
|
outboundRing=new RingStream(OUTBOUND_RING_SIZE);
|
||||||
#ifdef DO_MDNS
|
#ifdef DO_MDNS
|
||||||
mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME); // hostname
|
if (!mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME))
|
||||||
udp.begin(IPAddress(224, 0, 0, 251), 5353, true);
|
DIAG("mdns.begin fail"); // hostname
|
||||||
mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP);
|
mdns.addServiceRecord(WIFI_HOSTNAME, IP_PORT, MDNSServiceTCP);
|
||||||
// mdns.setServiceFoundCallback(serviceFound);
|
|
||||||
// mdns.startDiscoveringService("_withrottle", MDNSServiceTCP, 0);
|
|
||||||
// Not sure if we need to run it once, but just in case!
|
// Not sure if we need to run it once, but just in case!
|
||||||
mdns.run();
|
mdns.run();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -57,8 +57,8 @@ a lot of data that needs to be copied, this should be set high. */
|
||||||
#define MEM_SIZE (10*1024)
|
#define MEM_SIZE (10*1024)
|
||||||
|
|
||||||
// Could be better or worse, needs more tests
|
// Could be better or worse, needs more tests
|
||||||
//#define MEM_LIBC_MALLOC 1
|
#define MEM_LIBC_MALLOC 1 // critical, fixes heap trashing
|
||||||
//#define MEMP_MEM_MALLOC 1
|
#define MEMP_MEM_MALLOC 1 // uses malloc which means no pools which means slower but not mean 32KB up front
|
||||||
|
|
||||||
/* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
|
/* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
|
||||||
sends a lot of data out of ROM (or other static memory), this
|
sends a lot of data out of ROM (or other static memory), this
|
||||||
|
|
Loading…
Reference in New Issue
Block a user