Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Committer:
JimCarver
Date:
Thu Oct 25 14:00:12 2018 +0000
Revision:
4:e518dde96e59
Parent:
0:6b753f761943
Simulated dispenser

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JimCarver 0:6b753f761943 1 Apache License
JimCarver 0:6b753f761943 2 Version 2.0, January 2004
JimCarver 0:6b753f761943 3 http://www.apache.org/licenses/
JimCarver 0:6b753f761943 4
JimCarver 0:6b753f761943 5 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
JimCarver 0:6b753f761943 6
JimCarver 0:6b753f761943 7 1. Definitions.
JimCarver 0:6b753f761943 8
JimCarver 0:6b753f761943 9 "License" shall mean the terms and conditions for use, reproduction,
JimCarver 0:6b753f761943 10 and distribution as defined by Sections 1 through 9 of this document.
JimCarver 0:6b753f761943 11
JimCarver 0:6b753f761943 12 "Licensor" shall mean the copyright owner or entity authorized by
JimCarver 0:6b753f761943 13 the copyright owner that is granting the License.
JimCarver 0:6b753f761943 14
JimCarver 0:6b753f761943 15 "Legal Entity" shall mean the union of the acting entity and all
JimCarver 0:6b753f761943 16 other entities that control, are controlled by, or are under common
JimCarver 0:6b753f761943 17 control with that entity. For the purposes of this definition,
JimCarver 0:6b753f761943 18 "control" means (i) the power, direct or indirect, to cause the
JimCarver 0:6b753f761943 19 direction or management of such entity, whether by contract or
JimCarver 0:6b753f761943 20 otherwise, or (ii) ownership of fifty percent (50%) or more of the
JimCarver 0:6b753f761943 21 outstanding shares, or (iii) beneficial ownership of such entity.
JimCarver 0:6b753f761943 22
JimCarver 0:6b753f761943 23 "You" (or "Your") shall mean an individual or Legal Entity
JimCarver 0:6b753f761943 24 exercising permissions granted by this License.
JimCarver 0:6b753f761943 25
JimCarver 0:6b753f761943 26 "Source" form shall mean the preferred form for making modifications,
JimCarver 0:6b753f761943 27 including but not limited to software source code, documentation
JimCarver 0:6b753f761943 28 source, and configuration files.
JimCarver 0:6b753f761943 29
JimCarver 0:6b753f761943 30 "Object" form shall mean any form resulting from mechanical
JimCarver 0:6b753f761943 31 transformation or translation of a Source form, including but
JimCarver 0:6b753f761943 32 not limited to compiled object code, generated documentation,
JimCarver 0:6b753f761943 33 and conversions to other media types.
JimCarver 0:6b753f761943 34
JimCarver 0:6b753f761943 35 "Work" shall mean the work of authorship, whether in Source or
JimCarver 0:6b753f761943 36 Object form, made available under the License, as indicated by a
JimCarver 0:6b753f761943 37 copyright notice that is included in or attached to the work
JimCarver 0:6b753f761943 38 (an example is provided in the Appendix below).
JimCarver 0:6b753f761943 39
JimCarver 0:6b753f761943 40 "Derivative Works" shall mean any work, whether in Source or Object
JimCarver 0:6b753f761943 41 form, that is based on (or derived from) the Work and for which the
JimCarver 0:6b753f761943 42 editorial revisions, annotations, elaborations, or other modifications
JimCarver 0:6b753f761943 43 represent, as a whole, an original work of authorship. For the purposes
JimCarver 0:6b753f761943 44 of this License, Derivative Works shall not include works that remain
JimCarver 0:6b753f761943 45 separable from, or merely link (or bind by name) to the interfaces of,
JimCarver 0:6b753f761943 46 the Work and Derivative Works thereof.
JimCarver 0:6b753f761943 47
JimCarver 0:6b753f761943 48 "Contribution" shall mean any work of authorship, including
JimCarver 0:6b753f761943 49 the original version of the Work and any modifications or additions
JimCarver 0:6b753f761943 50 to that Work or Derivative Works thereof, that is intentionally
JimCarver 0:6b753f761943 51 submitted to Licensor for inclusion in the Work by the copyright owner
JimCarver 0:6b753f761943 52 or by an individual or Legal Entity authorized to submit on behalf of
JimCarver 0:6b753f761943 53 the copyright owner. For the purposes of this definition, "submitted"
JimCarver 0:6b753f761943 54 means any form of electronic, verbal, or written communication sent
JimCarver 0:6b753f761943 55 to the Licensor or its representatives, including but not limited to
JimCarver 0:6b753f761943 56 communication on electronic mailing lists, source code control systems,
JimCarver 0:6b753f761943 57 and issue tracking systems that are managed by, or on behalf of, the
JimCarver 0:6b753f761943 58 Licensor for the purpose of discussing and improving the Work, but
JimCarver 0:6b753f761943 59 excluding communication that is conspicuously marked or otherwise
JimCarver 0:6b753f761943 60 designated in writing by the copyright owner as "Not a Contribution."
JimCarver 0:6b753f761943 61
JimCarver 0:6b753f761943 62 "Contributor" shall mean Licensor and any individual or Legal Entity
JimCarver 0:6b753f761943 63 on behalf of whom a Contribution has been received by Licensor and
JimCarver 0:6b753f761943 64 subsequently incorporated within the Work.
JimCarver 0:6b753f761943 65
JimCarver 0:6b753f761943 66 2. Grant of Copyright License. Subject to the terms and conditions of
JimCarver 0:6b753f761943 67 this License, each Contributor hereby grants to You a perpetual,
JimCarver 0:6b753f761943 68 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
JimCarver 0:6b753f761943 69 copyright license to reproduce, prepare Derivative Works of,
JimCarver 0:6b753f761943 70 publicly display, publicly perform, sublicense, and distribute the
JimCarver 0:6b753f761943 71 Work and such Derivative Works in Source or Object form.
JimCarver 0:6b753f761943 72
JimCarver 0:6b753f761943 73 3. Grant of Patent License. Subject to the terms and conditions of
JimCarver 0:6b753f761943 74 this License, each Contributor hereby grants to You a perpetual,
JimCarver 0:6b753f761943 75 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
JimCarver 0:6b753f761943 76 (except as stated in this section) patent license to make, have made,
JimCarver 0:6b753f761943 77 use, offer to sell, sell, import, and otherwise transfer the Work,
JimCarver 0:6b753f761943 78 where such license applies only to those patent claims licensable
JimCarver 0:6b753f761943 79 by such Contributor that are necessarily infringed by their
JimCarver 0:6b753f761943 80 Contribution(s) alone or by combination of their Contribution(s)
JimCarver 0:6b753f761943 81 with the Work to which such Contribution(s) was submitted. If You
JimCarver 0:6b753f761943 82 institute patent litigation against any entity (including a
JimCarver 0:6b753f761943 83 cross-claim or counterclaim in a lawsuit) alleging that the Work
JimCarver 0:6b753f761943 84 or a Contribution incorporated within the Work constitutes direct
JimCarver 0:6b753f761943 85 or contributory patent infringement, then any patent licenses
JimCarver 0:6b753f761943 86 granted to You under this License for that Work shall terminate
JimCarver 0:6b753f761943 87 as of the date such litigation is filed.
JimCarver 0:6b753f761943 88
JimCarver 0:6b753f761943 89 4. Redistribution. You may reproduce and distribute copies of the
JimCarver 0:6b753f761943 90 Work or Derivative Works thereof in any medium, with or without
JimCarver 0:6b753f761943 91 modifications, and in Source or Object form, provided that You
JimCarver 0:6b753f761943 92 meet the following conditions:
JimCarver 0:6b753f761943 93
JimCarver 0:6b753f761943 94 (a) You must give any other recipients of the Work or
JimCarver 0:6b753f761943 95 Derivative Works a copy of this License; and
JimCarver 0:6b753f761943 96
JimCarver 0:6b753f761943 97 (b) You must cause any modified files to carry prominent notices
JimCarver 0:6b753f761943 98 stating that You changed the files; and
JimCarver 0:6b753f761943 99
JimCarver 0:6b753f761943 100 (c) You must retain, in the Source form of any Derivative Works
JimCarver 0:6b753f761943 101 that You distribute, all copyright, patent, trademark, and
JimCarver 0:6b753f761943 102 attribution notices from the Source form of the Work,
JimCarver 0:6b753f761943 103 excluding those notices that do not pertain to any part of
JimCarver 0:6b753f761943 104 the Derivative Works; and
JimCarver 0:6b753f761943 105
JimCarver 0:6b753f761943 106 (d) If the Work includes a "NOTICE" text file as part of its
JimCarver 0:6b753f761943 107 distribution, then any Derivative Works that You distribute must
JimCarver 0:6b753f761943 108 include a readable copy of the attribution notices contained
JimCarver 0:6b753f761943 109 within such NOTICE file, excluding those notices that do not
JimCarver 0:6b753f761943 110 pertain to any part of the Derivative Works, in at least one
JimCarver 0:6b753f761943 111 of the following places: within a NOTICE text file distributed
JimCarver 0:6b753f761943 112 as part of the Derivative Works; within the Source form or
JimCarver 0:6b753f761943 113 documentation, if provided along with the Derivative Works; or,
JimCarver 0:6b753f761943 114 within a display generated by the Derivative Works, if and
JimCarver 0:6b753f761943 115 wherever such third-party notices normally appear. The contents
JimCarver 0:6b753f761943 116 of the NOTICE file are for informational purposes only and
JimCarver 0:6b753f761943 117 do not modify the License. You may add Your own attribution
JimCarver 0:6b753f761943 118 notices within Derivative Works that You distribute, alongside
JimCarver 0:6b753f761943 119 or as an addendum to the NOTICE text from the Work, provided
JimCarver 0:6b753f761943 120 that such additional attribution notices cannot be construed
JimCarver 0:6b753f761943 121 as modifying the License.
JimCarver 0:6b753f761943 122
JimCarver 0:6b753f761943 123 You may add Your own copyright statement to Your modifications and
JimCarver 0:6b753f761943 124 may provide additional or different license terms and conditions
JimCarver 0:6b753f761943 125 for use, reproduction, or distribution of Your modifications, or
JimCarver 0:6b753f761943 126 for any such Derivative Works as a whole, provided Your use,
JimCarver 0:6b753f761943 127 reproduction, and distribution of the Work otherwise complies with
JimCarver 0:6b753f761943 128 the conditions stated in this License.
JimCarver 0:6b753f761943 129
JimCarver 0:6b753f761943 130 5. Submission of Contributions. Unless You explicitly state otherwise,
JimCarver 0:6b753f761943 131 any Contribution intentionally submitted for inclusion in the Work
JimCarver 0:6b753f761943 132 by You to the Licensor shall be under the terms and conditions of
JimCarver 0:6b753f761943 133 this License, without any additional terms or conditions.
JimCarver 0:6b753f761943 134 Notwithstanding the above, nothing herein shall supersede or modify
JimCarver 0:6b753f761943 135 the terms of any separate license agreement you may have executed
JimCarver 0:6b753f761943 136 with Licensor regarding such Contributions.
JimCarver 0:6b753f761943 137
JimCarver 0:6b753f761943 138 6. Trademarks. This License does not grant permission to use the trade
JimCarver 0:6b753f761943 139 names, trademarks, service marks, or product names of the Licensor,
JimCarver 0:6b753f761943 140 except as required for reasonable and customary use in describing the
JimCarver 0:6b753f761943 141 origin of the Work and reproducing the content of the NOTICE file.
JimCarver 0:6b753f761943 142
JimCarver 0:6b753f761943 143 7. Disclaimer of Warranty. Unless required by applicable law or
JimCarver 0:6b753f761943 144 agreed to in writing, Licensor provides the Work (and each
JimCarver 0:6b753f761943 145 Contributor provides its Contributions) on an "AS IS" BASIS,
JimCarver 0:6b753f761943 146 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
JimCarver 0:6b753f761943 147 implied, including, without limitation, any warranties or conditions
JimCarver 0:6b753f761943 148 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
JimCarver 0:6b753f761943 149 PARTICULAR PURPOSE. You are solely responsible for determining the
JimCarver 0:6b753f761943 150 appropriateness of using or redistributing the Work and assume any
JimCarver 0:6b753f761943 151 risks associated with Your exercise of permissions under this License.
JimCarver 0:6b753f761943 152
JimCarver 0:6b753f761943 153 8. Limitation of Liability. In no event and under no legal theory,
JimCarver 0:6b753f761943 154 whether in tort (including negligence), contract, or otherwise,
JimCarver 0:6b753f761943 155 unless required by applicable law (such as deliberate and grossly
JimCarver 0:6b753f761943 156 negligent acts) or agreed to in writing, shall any Contributor be
JimCarver 0:6b753f761943 157 liable to You for damages, including any direct, indirect, special,
JimCarver 0:6b753f761943 158 incidental, or consequential damages of any character arising as a
JimCarver 0:6b753f761943 159 result of this License or out of the use or inability to use the
JimCarver 0:6b753f761943 160 Work (including but not limited to damages for loss of goodwill,
JimCarver 0:6b753f761943 161 work stoppage, computer failure or malfunction, or any and all
JimCarver 0:6b753f761943 162 other commercial damages or losses), even if such Contributor
JimCarver 0:6b753f761943 163 has been advised of the possibility of such damages.
JimCarver 0:6b753f761943 164
JimCarver 0:6b753f761943 165 9. Accepting Warranty or Additional Liability. While redistributing
JimCarver 0:6b753f761943 166 the Work or Derivative Works thereof, You may choose to offer,
JimCarver 0:6b753f761943 167 and charge a fee for, acceptance of support, warranty, indemnity,
JimCarver 0:6b753f761943 168 or other liability obligations and/or rights consistent with this
JimCarver 0:6b753f761943 169 License. However, in accepting such obligations, You may act only
JimCarver 0:6b753f761943 170 on Your own behalf and on Your sole responsibility, not on behalf
JimCarver 0:6b753f761943 171 of any other Contributor, and only if You agree to indemnify,
JimCarver 0:6b753f761943 172 defend, and hold each Contributor harmless for any liability
JimCarver 0:6b753f761943 173 incurred by, or claims asserted against, such Contributor by reason
JimCarver 0:6b753f761943 174 of your accepting any such warranty or additional liability.
JimCarver 0:6b753f761943 175
JimCarver 0:6b753f761943 176 END OF TERMS AND CONDITIONS
JimCarver 0:6b753f761943 177
JimCarver 0:6b753f761943 178 APPENDIX: How to apply the Apache License to your work.
JimCarver 0:6b753f761943 179
JimCarver 0:6b753f761943 180 To apply the Apache License to your work, attach the following
JimCarver 0:6b753f761943 181 boilerplate notice, with the fields enclosed by brackets "{}"
JimCarver 0:6b753f761943 182 replaced with your own identifying information. (Don't include
JimCarver 0:6b753f761943 183 the brackets!) The text should be enclosed in the appropriate
JimCarver 0:6b753f761943 184 comment syntax for the file format. We also recommend that a
JimCarver 0:6b753f761943 185 file or class name and description of purpose be included on the
JimCarver 0:6b753f761943 186 same "printed page" as the copyright notice for easier
JimCarver 0:6b753f761943 187 identification within third-party archives.
JimCarver 0:6b753f761943 188
JimCarver 0:6b753f761943 189 Copyright {yyyy} {name of copyright owner}
JimCarver 0:6b753f761943 190
JimCarver 0:6b753f761943 191 Licensed under the Apache License, Version 2.0 (the "License");
JimCarver 0:6b753f761943 192 you may not use this file except in compliance with the License.
JimCarver 0:6b753f761943 193 You may obtain a copy of the License at
JimCarver 0:6b753f761943 194
JimCarver 0:6b753f761943 195 http://www.apache.org/licenses/LICENSE-2.0
JimCarver 0:6b753f761943 196
JimCarver 0:6b753f761943 197 Unless required by applicable law or agreed to in writing, software
JimCarver 0:6b753f761943 198 distributed under the License is distributed on an "AS IS" BASIS,
JimCarver 0:6b753f761943 199 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
JimCarver 0:6b753f761943 200 See the License for the specific language governing permissions and
JimCarver 0:6b753f761943 201 limitations under the License.