{"id":3452,"date":"2019-02-12T16:09:13","date_gmt":"2019-02-12T16:09:13","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/17-i-o-systems\/candbc_clear\/"},"modified":"2025-11-05T13:03:55","modified_gmt":"2025-11-05T18:03:55","slug":"candbc_clear","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/14-i-o-systems\/candbc_clear\/","title":{"rendered":"candbc_clear"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Instruct the CanDbc Driver to clear the list of messages it is sending.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>candbc_clear<\/strong> [-c=n] [name=register_name] [id=message]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<table style=\"border-collapse: collapse; width: 100%; height: 48px;\">\n<tbody>\n<tr>\n<td style=\"width: 10.6654%;\">\n<p>-c<\/p>\n<\/td>\n<td style=\"width: 89.3346%;\">\n<p>Optional. Specify the channel number to clear. The default value of 2 clears both channels.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10.6654%;\">name<\/td>\n<td style=\"width: 89.3346%;\">Optional. Specify a register name if the assigned CanDbc register name is different from the default name. Use this option to ensure\u00a0the correct \u2018CanDbc\u2019 task sends the message.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10.6654%;\">id<\/td>\n<td style=\"width: 89.3346%;\">Optional. Specify the message ID or name to clear. If this argument is being used, the -c option must also be used to specify the channel list from where to remove the message.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>candbc_clear<\/strong><br \/>\nStop sending all messages on the default channel as long as CanDbc was not started with the &#8216;name=&#8217; argument.<\/p>\n<p><strong>candbc_clear<\/strong>\u00a0 -c=1<br \/>\nStop sending all messages on the second channel.<\/p>\n<p><strong>candbc_clear <\/strong>name=CanDbc2<br \/>\nStop sending all messages on the default channel with a CanDbc task started with the register name \u201cCanDbc2\u201d.<\/p>\n<p><strong>candbc_clear <\/strong>name=CanDbc2 -c=0 id=23456789<br \/>\nStop sending the message with ID 23456789 on channel 1 with a CanDbc task started with the register name \u201cCanDbc2\u201d.<\/p>\n<p><strong>candbc_clear <\/strong>name=CanDbc2 -c=1 id=can_message1<br \/>\nStop sending the message with the name &#8220;can_message1&#8221; on channel 2 with a CanDbc task started with the register name \u201cCanDbc2\u201d.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>If the id option is used without -c, it clears the specified message on the default channels.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<p style=\"padding-left: 40px;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/14-i-o-systems\/candbc\/\">CanDbc<\/a><\/p>\n<dl>\n<dd><\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Instruct the CanDbc Driver to clear the list of messages it is sending. Enter: candbc_clear [-c=n] [name=register_name] [id=message] Where: -c Optional. Specify the channel number to clear. The default value of 2 clears both channels. name Optional. Specify a register name if the assigned CanDbc register name is different from the default name. Use [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1964,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3452","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3452"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3452\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1964"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}