ty4tw / MQTT-SN

MQTT-SN Gateway & Client over XBee and UDP
162 stars 66 forks source link

ubuntu : Client start argument error #13

Open ouleiqi opened 6 years ago

ouleiqi commented 6 years ago

I changed this on ubuntu: /----------- Select Platform ---------/

ifndef ARDUINO

    #define LINUX
    //#define MBED

endif

/--------- Select byte order ----------/

define CPU_LITTLEENDIANN

//#define CPU_BIGENDIANN

/-------- Select Network -------------/ //#define NETWORK_XBEE

define NETWORK_UDP <<<<-------------------uncomment this

/--- XBee Buffer Flow Control --/

ifdef NETWORK_XBEE

    //#define XBEE_FLOWCTL_CRTSCTS

endif

but

lsw@leiqi:~/MQTT-SN/Client# ./Build/TomyClient -i ClientID -g 225.1.1.1 -p 1883 -c -t WillTopic -m WillMessage -k 300 Client start argument error

RohithS98 commented 6 years ago

You need to include '-u: [client portNo] (UDP)' argument for client port