Commit b5d9e433b3ebd200d3ef227bf8d68f6424be544c
1 parent
51becbde
Fixed License Header for MIT
Showing
76 changed files
with
1522 additions
and
892 deletions
.gitignore
0 → 100644
1 | +./build/ |
CMakeLists.txt
1 | cmake_minimum_required(VERSION 3.0) | 1 | cmake_minimum_required(VERSION 3.0) |
2 | -LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | 2 | +# ============================================================================== |
3 | +# Check to see if we're a submodule or top-repo. | ||
4 | +message( STATUS "Current Directory : ${CMAKE_CURRENT_SOURCE_DIR}" ) | ||
5 | + | ||
6 | +if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | ||
7 | + LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | ||
8 | +elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) | ||
9 | + LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) | ||
10 | +else() | ||
11 | + message( FATAL_ERROR "No cmake directory found. Did you run the submodules script?" ) | ||
12 | +endif() | ||
13 | + | ||
3 | 14 | ||
4 | # Check to see if there is versioning information available | 15 | # Check to see if there is versioning information available |
5 | if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/osdev_versioning/cmake) | 16 | if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/osdev_versioning/cmake) |
@@ -11,8 +22,8 @@ include(projectheader) | @@ -11,8 +22,8 @@ include(projectheader) | ||
11 | project_header(osdev_mqtt) | 22 | project_header(osdev_mqtt) |
12 | 23 | ||
13 | add_subdirectory(src) | 24 | add_subdirectory(src) |
14 | -add_subdirectory(tests/pub) | ||
15 | -add_subdirectory(tests/sub) | 25 | +add_subdirectory(examples/pub) |
26 | +add_subdirectory(examples/sub) | ||
16 | 27 | ||
17 | 28 | ||
18 | # include(packaging) | 29 | # include(packaging) |
tests/CMakeLists.txt renamed to README.md
tests/pub/CMakeLists.txt renamed to examples/pub/CMakeLists.txt
tests/pub/main.cpp renamed to examples/pub/main.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | 22 | ||
20 | // std | 23 | // std |
21 | #include <iostream> | 24 | #include <iostream> |
tests/pub/publisher.cpp renamed to examples/pub/publisher.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | 22 | ||
20 | // osdev::components::mqtt | 23 | // osdev::components::mqtt |
21 | #include "token.h" | 24 | #include "token.h" |
examples/pub/publisher.h
0 → 100644
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
22 | +#pragma once | ||
23 | + | ||
24 | +// std | ||
25 | +#include <memory> | ||
26 | +#include <string> | ||
27 | + | ||
28 | +// osdev::components::mqtt | ||
29 | +#include "mqttclient.h" | ||
30 | +#include "compat-c++14.h" | ||
31 | + | ||
32 | +class Publisher | ||
33 | +{ | ||
34 | +public: | ||
35 | + Publisher(); | ||
36 | + | ||
37 | + virtual ~Publisher() {} | ||
38 | + | ||
39 | + void connect( const std::string &hostname, int portnumber = 1883, const std::string &username = std::string(), const std::string &password = std::string() ); | ||
40 | + | ||
41 | + void publish( const std::string &message_topic, const std::string &message_payload ); | ||
42 | + | ||
43 | +private: | ||
44 | + osdev::components::mqtt::MqttClient m_mqtt_client; | ||
45 | +}; |
tests/sub/CMakeLists.txt renamed to examples/sub/CMakeLists.txt
tests/sub/main.cpp renamed to examples/sub/main.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | 22 | ||
20 | // std | 23 | // std |
21 | #include <iostream> | 24 | #include <iostream> |
tests/sub/subscriber.cpp renamed to examples/sub/subscriber.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "subscriber.h" | 22 | #include "subscriber.h" |
20 | #include "mqttmessage.h" | 23 | #include "mqttmessage.h" |
21 | #include "credentials.h" | 24 | #include "credentials.h" |
tests/sub/subscriber.h renamed to examples/sub/subscriber.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #pragma once | 22 | #pragma once |
20 | 23 | ||
21 | // std | 24 | // std |
scripts/setup_submodules
0 → 100755
1 | +#!/bin/bash | ||
2 | + | ||
3 | +function print_usage_exit() { | ||
4 | + echo "Usage $0 -i|--install|-u|--update" | ||
5 | + echo " -i or --install Install the submodules mentioned in the submodules.list" | ||
6 | + echo " -u or --update Update the submodules mentioned in the submodules.list" | ||
7 | + echo " " | ||
8 | + exit 1 | ||
9 | +} | ||
10 | + | ||
11 | +function read_submodules() { | ||
12 | + if [ -e ./submodules.list ]; then | ||
13 | + source ./submodules.list | ||
14 | + fi | ||
15 | +} | ||
16 | + | ||
17 | +function add_submodules() { | ||
18 | + for SUB_MODULE in ${SUB_MODULES} | ||
19 | + do | ||
20 | + git submodule add -f git@gitlab.osdev.nl:OpenSystemsDevelopment/${SUB_MODULE} ${SUB_MODULE} | ||
21 | + git config submodule.${SUB_MODULE}.url git@gitlab.osdev.nl:OpenSystemsDevelopment/${SUB_MODULE} | ||
22 | + done | ||
23 | +} | ||
24 | + | ||
25 | +function get_submodules() { | ||
26 | + git submodule update --init --recursive | ||
27 | +} | ||
28 | + | ||
29 | +function update_submodules() { | ||
30 | + git submodule update --recursive | ||
31 | +} | ||
32 | + | ||
33 | +# ============================================================================= | ||
34 | +# == T H E M A I N E N T R Y O F T H I S S C R I P T == | ||
35 | +# ============================================================================= | ||
36 | +read_submodules | ||
37 | + | ||
38 | +case "$1" in | ||
39 | + -i*|--install*) | ||
40 | + echo "Installing submodules for this repository ( ${PWD} )" | ||
41 | + add_submodules | ||
42 | + get_submodules | ||
43 | + ;; | ||
44 | + -u*|--update*) | ||
45 | + echo "Update submodules : ${SUB_MODULES}" | ||
46 | + update_submodules | ||
47 | + ;; | ||
48 | + *) | ||
49 | + echo "No parameters found..." | ||
50 | + print_usage_exit | ||
51 | + ;; | ||
52 | +esac | ||
53 | + |
scripts/submodules.list
0 → 100644
src/bimap.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | ||
19 | - | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
20 | #ifndef OSDEV_COMPONENTS_MQTT_BIMAP_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_BIMAP_H |
21 | #define OSDEV_COMPONENTS_MQTT_BIMAP_H | 23 | #define OSDEV_COMPONENTS_MQTT_BIMAP_H |
22 | 24 |
src/clientpaho.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "clientpaho.h" | 22 | #include "clientpaho.h" |
20 | 23 | ||
21 | #include "errorcode.h" | 24 | #include "errorcode.h" |
src/clientpaho.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_CLIENTPAHO_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_CLIENTPAHO_H |
2 | #define OSDEV_COMPONENTS_MQTT_CLIENTPAHO_H | 23 | #define OSDEV_COMPONENTS_MQTT_CLIENTPAHO_H |
3 | 24 |
src/commondefs.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "commondefs.h" | 22 | #include "commondefs.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/commondefs.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_COMMONDEFS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_COMMONDEFS_H |
2 | #define OSDEV_COMPONENTS_MQTT_COMMONDEFS_H | 23 | #define OSDEV_COMPONENTS_MQTT_COMMONDEFS_H |
3 | 24 |
src/compat-c++14.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_COMPATCXX14 | 22 | #ifndef OSDEV_COMPONENTS_COMPATCXX14 |
20 | #define OSDEV_COMPONENTS_COMPATCXX14 | 23 | #define OSDEV_COMPONENTS_COMPATCXX14 |
21 | 24 |
src/compat-chrono.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include <chrono> | 22 | #include <chrono> |
20 | #include <type_traits> | 23 | #include <type_traits> |
21 | 24 |
src/compiletimedigits.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_COMPILETIMEDIGITS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_COMPILETIMEDIGITS_H |
20 | #define OSDEV_COMPONENTS_MQTT_COMPILETIMEDIGITS_H | 23 | #define OSDEV_COMPONENTS_MQTT_COMPILETIMEDIGITS_H |
21 | 24 |
src/compiletimestring.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_COMPILETIMESTRING_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_COMPILETIMESTRING_H |
20 | #define OSDEV_COMPONENTS_MQTT_COMPILETIMESTRING_H | 23 | #define OSDEV_COMPONENTS_MQTT_COMPILETIMESTRING_H |
21 | 24 |
src/connectionstatus.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "connectionstatus.h" | 22 | #include "connectionstatus.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/connectionstatus.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H |
2 | #define OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H | 23 | #define OSDEV_COMPONENTS_MQTT_CONNECTIONSTATUS_H |
3 | 24 |
src/credentials.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "credentials.h" | 22 | #include "credentials.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/credentials.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_CREDENTIALS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_CREDENTIALS_H |
2 | #define OSDEV_COMPONENTS_MQTT_CREDENTIALS_H | 23 | #define OSDEV_COMPONENTS_MQTT_CREDENTIALS_H |
3 | 24 |
src/errorcode.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "errorcode.h" | 22 | #include "errorcode.h" |
20 | 23 | ||
21 | // paho | 24 | // paho |
src/errorcode.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_ERRORCODE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_ERRORCODE_H |
2 | #define OSDEV_COMPONENTS_MQTT_ERRORCODE_H | 23 | #define OSDEV_COMPONENTS_MQTT_ERRORCODE_H |
3 | 24 |
src/histogram.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAM_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAM_H |
20 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAM_H | 23 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAM_H |
21 | 24 |
src/histogramprovider.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAMPROVIDER_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAMPROVIDER_H |
20 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAMPROVIDER_H | 23 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_HISTOGRAMPROVIDER_H |
21 | 24 |
src/ihistogram.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "ihistogram.h" | 22 | #include "ihistogram.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/ihistogram.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_IHISTOGRAM_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_IHISTOGRAM_H |
2 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_IHISTOGRAM_H | 23 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_IHISTOGRAM_H |
3 | 24 |
src/imqttclient.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_IMQTTCLIENT_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_IMQTTCLIENT_H |
20 | #define OSDEV_COMPONENTS_MQTT_IMQTTCLIENT_H | 23 | #define OSDEV_COMPONENTS_MQTT_IMQTTCLIENT_H |
21 | 24 |
src/imqttclientimpl.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "imqttclientimpl.h" | 22 | #include "imqttclientimpl.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/imqttclientimpl.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_IMQTTCLIENTIMPL_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_IMQTTCLIENTIMPL_H |
20 | #define OSDEV_COMPONENTS_MQTT_IMQTTCLIENTIMPL_H | 23 | #define OSDEV_COMPONENTS_MQTT_IMQTTCLIENTIMPL_H |
21 | 24 |
src/istatecallback.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "istatecallback.h" | 22 | #include "istatecallback.h" |
20 | 23 | ||
21 | #include <sstream> | 24 | #include <sstream> |
src/istatecallback.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_ISTATECALLBACK_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_ISTATECALLBACK_H |
2 | #define OSDEV_COMPONENTS_MQTT_ISTATECALLBACK_H | 23 | #define OSDEV_COMPONENTS_MQTT_ISTATECALLBACK_H |
3 | 24 |
src/lockguard.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_LOCKGUARD_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_LOCKGUARD_H |
20 | #define OSDEV_COMPONENTS_MQTT_LOCKGUARD_H | 23 | #define OSDEV_COMPONENTS_MQTT_LOCKGUARD_H |
21 | 24 |
src/macrodefs.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_MACRODEFS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MACRODEFS_H |
20 | #define OSDEV_COMPONENTS_MQTT_MACRODEFS_H | 23 | #define OSDEV_COMPONENTS_MQTT_MACRODEFS_H |
21 | 24 |
src/measure.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_MEASURE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_MEASURE_H |
20 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_MEASURE_H | 23 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_MEASURE_H |
21 | 24 |
src/metaprogrammingdefs.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_METAPROGRAMMINGDEFS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_METAPROGRAMMINGDEFS_H |
20 | #define OSDEV_COMPONENTS_MQTT_METAPROGRAMMINGDEFS_H | 23 | #define OSDEV_COMPONENTS_MQTT_METAPROGRAMMINGDEFS_H |
21 | 24 |
src/mqttclient.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttclient.h" | 22 | #include "mqttclient.h" |
20 | 23 | ||
21 | // osdev::components::mqtt | 24 | // osdev::components::mqtt |
src/mqttclient.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTCLIENT_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTCLIENT_H |
2 | #define OSDEV_COMPONENTS_MQTT_MQTTCLIENT_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTCLIENT_H |
3 | 24 |
src/mqttfailure.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttfailure.h" | 22 | #include "mqttfailure.h" |
20 | 23 | ||
21 | // osdev::components::mqtt | 24 | // osdev::components::mqtt |
src/mqttfailure.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTFAILURE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTFAILURE_H |
2 | #define OSDEV_COMPONENTS_MQTT_MQTTFAILURE_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTFAILURE_H |
3 | 24 |
src/mqttidgenerator.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttidgenerator.h" | 22 | #include "mqttidgenerator.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/mqttidgenerator.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MLOGICIDGENERATOR_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MLOGICIDGENERATOR_H |
2 | #define OSDEV_COMPONENTS_MQTT_MLOGICIDGENERATOR_H | 23 | #define OSDEV_COMPONENTS_MQTT_MLOGICIDGENERATOR_H |
3 | 24 |
src/mqttmessage.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttmessage.h" | 22 | #include "mqttmessage.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/mqttmessage.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTMESSAGE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTMESSAGE_H |
2 | #define OSDEV_COMPONENTS_MQTT_MQTTMESSAGE_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTMESSAGE_H |
3 | 24 |
src/mqttstream.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTSTREAM_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTSTREAM_H |
20 | #define OSDEV_COMPONENTS_MQTT_MQTTSTREAM_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTSTREAM_H |
21 | 24 |
src/mqttsuccess.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttsuccess.h" | 22 | #include "mqttsuccess.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/mqttsuccess.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTSUCCESS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTSUCCESS_H |
2 | #define OSDEV_COMPONENTS_MQTT_MQTTSUCCESS_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTSUCCESS_H |
3 | 24 |
src/mqtttypeconverter.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqtttypeconverter.h" | 22 | #include "mqtttypeconverter.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/mqtttypeconverter.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MLOGICTYPECONVERTER_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MLOGICTYPECONVERTER_H |
2 | #define OSDEV_COMPONENTS_MQTT_MLOGICTYPECONVERTER_H | 23 | #define OSDEV_COMPONENTS_MQTT_MLOGICTYPECONVERTER_H |
3 | 24 |
src/mqttutil.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "mqttutil.h" | 22 | #include "mqttutil.h" |
20 | 23 | ||
21 | // boost | 24 | // boost |
src/mqttutil.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTUTIL_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MQTTUTIL_H |
2 | #define OSDEV_COMPONENTS_MQTT_MQTTUTIL_H | 23 | #define OSDEV_COMPONENTS_MQTT_MQTTUTIL_H |
3 | 24 |
src/scopeguard.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "scopeguard.h" | 22 | #include "scopeguard.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/scopeguard.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_SCOPEGUARD_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_SCOPEGUARD_H |
2 | #define OSDEV_COMPONENTS_MQTT_SCOPEGUARD_H | 23 | #define OSDEV_COMPONENTS_MQTT_SCOPEGUARD_H |
3 | 24 |
src/serverstate.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "serverstate.h" | 22 | #include "serverstate.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/serverstate.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_SERVERSTATE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_SERVERSTATE_H |
2 | #define OSDEV_COMPONENTS_MQTT_SERVERSTATE_H | 23 | #define OSDEV_COMPONENTS_MQTT_SERVERSTATE_H |
3 | 24 |
src/sharedreaderlock.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "sharedreaderlock.h" | 22 | #include "sharedreaderlock.h" |
20 | 23 | ||
21 | 24 |
src/sharedreaderlock.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_SHAREDREADERLOCK_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_SHAREDREADERLOCK_H |
2 | #define OSDEV_COMPONENTS_MQTT_SHAREDREADERLOCK_H | 23 | #define OSDEV_COMPONENTS_MQTT_SHAREDREADERLOCK_H |
3 | 24 |
src/stringify.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDSEV_COMPONENTS_MQTT_STRINGIFY_H | 22 | #ifndef OSDSEV_COMPONENTS_MQTT_STRINGIFY_H |
20 | #define OSDSEV_COMPONENTS_MQTT_STRINGIFY_H | 23 | #define OSDSEV_COMPONENTS_MQTT_STRINGIFY_H |
21 | 24 |
src/stringutils.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "stringutils.h" | 22 | #include "stringutils.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/stringutils.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_STRINGUTILS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_STRINGUTILS_H |
20 | #define OSDEV_COMPONENTS_MQTT_STRINGUTILS_H | 23 | #define OSDEV_COMPONENTS_MQTT_STRINGUTILS_H |
21 | 24 |
src/synchronizedqueue.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_SYNCHRONIZEDQUEUE_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_SYNCHRONIZEDQUEUE_H |
20 | #define OSDEV_COMPONENTS_MQTT_SYNCHRONIZEDQUEUE_H | 23 | #define OSDEV_COMPONENTS_MQTT_SYNCHRONIZEDQUEUE_H |
21 | 24 |
src/timemeasurement.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "timemeasurement.h" | 22 | #include "timemeasurement.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt::measurement; | 24 | using namespace osdev::components::mqtt::measurement; |
src/timemeasurement.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_TIMEMEASUREMENT_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_MEASUREMENT_TIMEMEASUREMENT_H |
2 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_TIMEMEASUREMENT_H | 23 | #define OSDEV_COMPONENTS_MQTT_MEASUREMENT_TIMEMEASUREMENT_H |
3 | 24 |
src/token.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "token.h" | 22 | #include "token.h" |
20 | 23 | ||
21 | using namespace osdev::components::mqtt; | 24 | using namespace osdev::components::mqtt; |
src/token.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_TOKEN_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_TOKEN_H |
2 | #define OSDEV_COMPONENTS_MQTT_TOKEN_H | 23 | #define OSDEV_COMPONENTS_MQTT_TOKEN_H |
3 | 24 |
src/uriparser.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "uriparser.h" | 22 | #include "uriparser.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/uriparser.h
1 | +/* **************************************************************************** | ||
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
1 | #ifndef OSDEV_COMPONENTS_MQTT_URIPARSER_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_URIPARSER_H |
2 | #define OSDEV_COMPONENTS_MQTT_URIPARSER_H | 23 | #define OSDEV_COMPONENTS_MQTT_URIPARSER_H |
3 | 24 |
src/uriutils.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_URIUTILS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_URIUTILS_H |
20 | #define OSDEV_COMPONENTS_MQTT_URIUTILS_H | 23 | #define OSDEV_COMPONENTS_MQTT_URIUTILS_H |
21 | 24 |
src/utils.cpp
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #include "utils.h" | 22 | #include "utils.h" |
20 | 23 | ||
21 | // std | 24 | // std |
src/utils.h
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | 1 | +/* **************************************************************************** |
2 | + * Copyright 2019 Open Systems Development BV * | ||
3 | + * * | ||
4 | + * Permission is hereby granted, free of charge, to any person obtaining a * | ||
5 | + * copy of this software and associated documentation files (the "Software"), * | ||
6 | + * to deal in the Software without restriction, including without limitation * | ||
7 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, * | ||
8 | + * and/or sell copies of the Software, and to permit persons to whom the * | ||
9 | + * Software is furnished to do so, subject to the following conditions: * | ||
10 | + * * | ||
11 | + * The above copyright notice and this permission notice shall be included in * | ||
12 | + * all copies or substantial portions of the Software. * | ||
13 | + * * | ||
14 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * | ||
15 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * | ||
16 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * | ||
17 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * | ||
18 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * | ||
19 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * | ||
20 | + * DEALINGS IN THE SOFTWARE. * | ||
21 | + * ***************************************************************************/ | ||
19 | #ifndef OSDEV_COMPONENTS_MQTT_UTILS_H | 22 | #ifndef OSDEV_COMPONENTS_MQTT_UTILS_H |
20 | #define OSDEV_COMPONENTS_MQTT_UTILS_H | 23 | #define OSDEV_COMPONENTS_MQTT_UTILS_H |
21 | 24 |
tests/pub/publisher.h deleted
1 | -/* Copyright (C) 2019 | ||
2 | - * | ||
3 | - * This file is part of the osdev components suite | ||
4 | - * | ||
5 | - * This program is free software; you can redistribute it and/or modify it | ||
6 | - * under the terms of the GNU General Public License as published by the | ||
7 | - * Free Software Foundation; either version 2, or (at your option) any | ||
8 | - * later version. | ||
9 | - * | ||
10 | - * This program is distributed in the hope that it will be useful, | ||
11 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | - * GNU General Public License for more details. | ||
14 | - * | ||
15 | - * You should have received a copy of the GNU General Public License | ||
16 | - * along with this program; if not, write to the Free Software | ||
17 | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
18 | - */ | ||
19 | -#pragma once | ||
20 | - | ||
21 | -// std | ||
22 | -#include <memory> | ||
23 | -#include <string> | ||
24 | - | ||
25 | -// osdev::components::mqtt | ||
26 | -#include "mqttclient.h" | ||
27 | -#include "compat-c++14.h" | ||
28 | - | ||
29 | -class Publisher | ||
30 | -{ | ||
31 | -public: | ||
32 | - Publisher(); | ||
33 | - | ||
34 | - virtual ~Publisher() {} | ||
35 | - | ||
36 | - void connect( const std::string &hostname, int portnumber = 1883, const std::string &username = std::string(), const std::string &password = std::string() ); | ||
37 | - | ||
38 | - void publish( const std::string &message_topic, const std::string &message_payload ); | ||
39 | - | ||
40 | -private: | ||
41 | - osdev::components::mqtt::MqttClient m_mqtt_client; | ||
42 | -}; |