[Issue #7] - Added config.go setting to allow setting the hostname
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ func InitNetwork(ssid, pass string) (*NetworkStack, error) {
|
||||
|
||||
stack := &xnet.StackAsync{}
|
||||
err = stack.Reset(xnet.StackConfig{
|
||||
Hostname: "pico2w-bme280",
|
||||
Hostname: Hostname,
|
||||
RandSeed: time.Now().UnixNano(),
|
||||
MaxActiveTCPPorts: 2,
|
||||
MTU: uint16(framelen - ethernet.MaxOverheadSize),
|
||||
|
||||
Reference in New Issue
Block a user