Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions lib/matrix_api_lite.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* MIT License
*
*
* Copyright (C) 2019, 2020, 2021 Famedly GmbH
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down Expand Up @@ -50,6 +50,7 @@ export 'src/model/events/room_key_request_content.dart';
export 'src/model/events/secret_storage_default_key_content.dart';
export 'src/model/events/secret_storage_key_content.dart';
export 'src/model/events/tombstone_content.dart';
export 'src/utils/low_bandwidth_helper.dart';
export 'src/model/matrix_connection_exception.dart';
export 'src/model/matrix_event.dart';
export 'src/model/matrix_exception.dart';
Expand Down
49 changes: 49 additions & 0 deletions lib/src/config/coap_config.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// GENERATED CODE, do not edit this file.

import 'package:coap/coap.dart';

/// Configuration loading class. The config file itself is a YAML
/// file. The configuration items below are marked as optional to allow
/// the config file to contain only those entries that override the defaults.
/// The file can't be empty, so version must as a minimum be present.
class CoapConfig extends DefaultCoapConfig {
CoapConfig() {
DefaultCoapConfig.inst = this;
}

@override
CoapISpec? spec;

@override
String get version => 'RFC7252';

@override
String get deduplicator => 'MarkAndSweep';

@override
int get ackTimeout => 30000;

@override
bool get poolUdpConnectionsByClient => true;

@override
bool get dtlsUse => true;

@override
String get dtlsCiphers => 'aRSA';

@override
String get logTarget => 'console';

@override
bool get logError => true;

@override
bool get logDebug => false;

@override
bool get logWarn => true;

@override
bool get logInfo => false;
}
20 changes: 20 additions & 0 deletions lib/src/config/coap_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Protocol section
version: "RFC7252"
deduplicator: "MarkAndSweep" # CropRotayion or Noop
ackTimeout: 30000 # ms

poolUdpConnectionsByClient: true

dtls:
use: true
ciphers: aRSA

# Logging section

# Target is none or console
logTarget: "console"
# Log levels
logError: true
logDebug: false
logWarn: true
logInfo: false
Loading