fix(gateways): hardcode the listener and zone names
This commit is contained in:
parent
f6702b020e
commit
bcae0cbb50
|
@ -371,7 +371,8 @@ clientinfo(#state{peername = {PeerHost, _},
|
|||
clientid = ClientId,
|
||||
username = Username,
|
||||
password = Password}) ->
|
||||
#{zone => undefined,
|
||||
#{zone => default,
|
||||
listener => mqtt_tcp, %% FIXME: this won't work
|
||||
protocol => coap,
|
||||
peerhost => PeerHost,
|
||||
sockport => 5683, %% FIXME:
|
||||
|
|
|
@ -219,7 +219,8 @@ send(Data, #state{socket = {esockd_transport, Sock}}) ->
|
|||
|
||||
-define(DEFAULT_GC_OPTS, #{count => 1000, bytes => 1024*1024}).
|
||||
-define(DEFAULT_IDLE_TIMEOUT, 30000).
|
||||
-define(DEFAULT_OOM_POLICY, #{max_heap_size => 4194304,message_queue_len => 32000}).
|
||||
-define(DEFAULT_OOM_POLICY, #{enable => true, max_heap_size => 4194304,
|
||||
max_message_queue_len => 32000}).
|
||||
|
||||
init(Parent, WrappedSock, Peername, Options) ->
|
||||
case esockd_wait(WrappedSock) of
|
||||
|
|
|
@ -441,7 +441,8 @@ take_place(Text, Placeholder, Value) ->
|
|||
clientinfo(#lwm2m_state{peername = {PeerHost, _},
|
||||
endpoint_name = EndpointName,
|
||||
mountpoint = Mountpoint}) ->
|
||||
#{zone => undefined,
|
||||
#{zone => default,
|
||||
listener => mqtt_tcp, %% FIXME: this won't work
|
||||
protocol => lwm2m,
|
||||
peerhost => PeerHost,
|
||||
sockport => 5683, %% FIXME:
|
||||
|
|
Loading…
Reference in New Issue