Dear quectel-people,
I try to connect to the BC95G via socket.
After
AT+CFUN?
AT+CFUN=1
AT+CGATT=1
AT+CGDCONT=1,“IP”,“iot.1nce.net”
AT+CGATT?
AT+CGACT=1,1
everything is still fine, AT+CGPADDR returns the IP-Address of the module, I can “nping” and so on.
Then I create a TCP-Socket using
AT+NSOCR=STREAM,6,1024,1
response = 1
Then I try to connect from the server (which is inside the same VPN), but no success.
When I Listen on the Server for a connection and then try
AT+NSOCO=1,10.65.123.123,6500 a connection is established and I can send data once to the module.
But how can I make the connection the other way around, i.e. open a socket and let the server connect to the module? (I also tried DGRAM,17 = UDP instead of STREAM, 6 = TCP)
Thx in advance