{"id":4855,"date":"2020-12-07T18:40:11","date_gmt":"2020-12-07T16:40:11","guid":{"rendered":"https:\/\/grodansparadis.com\/wordpress\/?p=4855"},"modified":"2020-12-07T18:40:11","modified_gmt":"2020-12-07T16:40:11","slug":"vscp-daemon-next-version-peek","status":"publish","type":"post","link":"https:\/\/grodansparadis.com\/wordpress\/?p=4855","title":{"rendered":"VSCP daemon &#8211; next version peek"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"383\" data-attachment-id=\"4856\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4856\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/12\/Screenshot-from-2020-12-07-17-12-49.png?fit=612%2C404&amp;ssl=1\" data-orig-size=\"612,404\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-12-07-17-12-49\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/12\/Screenshot-from-2020-12-07-17-12-49.png?fit=580%2C383&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/12\/Screenshot-from-2020-12-07-17-12-49.png?resize=580%2C383&#038;ssl=1\" alt=\"\" class=\"wp-image-4856\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/12\/Screenshot-from-2020-12-07-17-12-49.png?w=612&amp;ssl=1 612w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/12\/Screenshot-from-2020-12-07-17-12-49.png?resize=300%2C198&amp;ssl=1 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It is now possible to use tokens instead of numbers in events published topics from a driver and from the VSCP daemon itself. This is accomplished by using <strong><em>{{class-token}}<\/em><\/strong> and <strong><em>{{type-token}}<\/em><\/strong> instead off <strong><em>{{class}}<\/em><\/strong> \/ <strong><em>{{type}}<\/em><\/strong> so a topic for the above can look like<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vscp\/{{guid}}\/{{class-token}}\/{{type-token}}\/{{nickname}}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note that also {{<strong><em>nickname<\/em><\/strong>}} is set here to make it easy to filter on events from a specific node.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The current list of substitutions that can be used is<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>{{driver-name}}<\/em><\/strong> &#8211; Name of driver receiving ten event,<br><strong><em>{{guid}}<\/em><\/strong> &#8211; Full GUID on standard form.<br><strong><em>{{guid0}}<\/em><\/strong> &#8211; <strong><em>{{guid0}}<\/em><\/strong> &#8211; A specific GUID position.<br><strong><em>{{guid.msb}}<\/em><\/strong> &#8211; MSB of GUID.<br><strong><em>{{guid.lsb}}<\/em><\/strong> &#8211; LSB of GUID = nickname for can4vscp.<br><strong><em>{{ifguid}}<\/em><\/strong> &#8211; GUID for interface the event is received on.<br><strong><em>{{nickname}}<\/em><\/strong> &#8211; Nickname for node sendning event.<br><strong><em>{{class}}<\/em><\/strong> &#8211; VSCP class<br><strong><em>{{type}}<\/em><\/strong> &#8211; VSCP type.<br><strong><em>{{class-token}}<\/em><\/strong> &#8211; VSCP class token.<br><strong><em>{{type-token}}<\/em><\/strong> &#8211; VSCP type token.<br><strong><em>{{head}}<\/em><\/strong> &#8211; VSCP event head.<br><strong><em>{{obid}}<\/em><\/strong> &#8211; VSCP event obid.<br><strong><em>{{timestamp}}<\/em><\/strong> &#8211; VSCP event timestamp.<br><strong><em>{{dt}}<\/em><\/strong> &#8211; VSCP UTC datetime string.<br><strong><em>{{year}}<\/em><\/strong> &#8211; VSCP event year.<br><strong><em>{{month}}<\/em><\/strong> &#8211; VSCP event month.<br><strong><em>{{day}}<\/em><\/strong> &#8211; VSCP event day.<br><strong><em>{{hour}}<\/em><\/strong> &#8211; VSCP event hour.<br><strong><em>{{minute}}<\/em><\/strong> &#8211; VSCP event minute.<br><strong><em>{{second}}<\/em><\/strong> &#8211; VSCP event second.<br><strong><em>{{clientid}}<\/em><\/strong> &#8211; Client id set for driver.<br><strong><em>{{user}}<\/em><\/strong> &#8211; User set for driver.<br><strong><em>{{host}}<\/em><\/strong> &#8211; Host set for driver.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There will probably be more added as we walk the path against a release.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is now possible to use tokens instead of numbers in events published topics from a driver and from the VSCP daemon itself. This is accomplished by using {{class-token}} and {{type-token}} instead off {{class}} \/ {{type}} so a topic for the above can look like vscp\/{{guid}}\/{{class-token}}\/{{type-token}}\/{{nickname}} Note that also {{nickname}} is set here to make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[46,13],"tags":[],"class_list":["post-4855","post","type-post","status-publish","format-standard","hentry","category-the-vscp-daemon","category-vscp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4raCZ-1gj","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4855"}],"version-history":[{"count":1,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4855\/revisions"}],"predecessor-version":[{"id":4857,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4855\/revisions\/4857"}],"wp:attachment":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}