Changing port for sending data via LoRa
- 
					
					
					
					
Using this code I can send data to TTN, but by default data sending to port 2, how can I change port?
 - 
					
					
					
					
@jmarcelino Thanks, it works!
 - 
					
					
					
					
@gruia-nichita
Use the socket.bind(n) function, so for example if you adds.bind(8)before s.send(...) your data would use port 8.