Closed kevin0598 closed 4 years ago
show me your gateway.conf. Which protocol are you using udp or udp6?
This is what my gateway.conf look like
[ #**
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# and Eclipse Distribution License v1.0 which accompany this distribution.
#
# The Eclipse Public License is available at
# http://www.eclipse.org/legal/epl-v10.html
# and the Eclipse Distribution License is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#***************************************************************************
#
# config file of MQTT-SN Gateway
#
BrokerName=192.168.1.151
BrokerPortNo=1883
BrokerSecurePortNo=8883
#
# When AggregatingGateway=YES or ClientAuthentication=YES,
# All clients must be specified by the ClientList File
#
ClientAuthentication=NO
AggregatingGateway=NO
QoS-1=NO
Forwarder=NO
#ClientsList=/path/to/your_clients.conf
PredefinedTopic=NO
#PredefinedTopicList=/path/to/your_predefinedTopic.conf
#RootCAfile=/etc/ssl/certs/ca-certificates.crt
#RootCApath=/etc/ssl/certs/
#CertsFile=/path/to/certKey.pem
#PrivateKey=/path/to/privateKey.pem
GatewayID=1
GatewayName=PahoGateway-01
KeepAlive=900
#LoginID=your_ID
#Password=your_Password
# UDP
GatewayPortNo=1884
MulticastIP=225.1.1.1
MulticastPortNo=1883
MulticastTTL=1
# UDP6
GatewayUDP6Bind=FFFF:FFFE::1
GatewayUDP6Port=1884
GatewayUDP6Broadcast=FF02::1
GatewayUDP6If=wpan0
GatewayUDP6Hops=1
# XBee
Baudrate=38400
SerialDevice=/dev/ttyUSB0
ApiMode=2
# LOG
ShearedMemory=YES;](url)
I'm using udp6
Can I see a while log of the gateway?
In your case the gayeway sholud use udp. Because your client using udp I guess.
Hello Sir, I want to ask something
I use this as my MQTT-SN Client https://github.com/S3ler/arduino-mqtt-sn-client and it can connect to the Gateway and even can subscribe too but the problem is I can publish a message or even change my Client ID and in my gateway show up this error
this is my code for MQTT-SN Client
[ #include
include
what is the problem? i don't know what's wrong![image](https://user-images.githubusercontent.com/48360957/81503065-31a8da80-9314-11ea-9b4f-db62a0f56f3a.png)