{"id":16514,"date":"2024-11-18T17:01:57","date_gmt":"2024-11-18T09:01:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/16514\/"},"modified":"2024-11-18T17:01:57","modified_gmt":"2024-11-18T09:01:57","slug":"linux%e9%a9%b1%e5%8a%a8-%e5%9c%a8%e9%a9%b1%e5%8a%a8%e4%b8%ad%e5%88%9b%e5%bb%basysfs%e6%8e%a5%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/16514\/","title":{"rendered":"Linux\u9a71\u52a8 | \u5728\u9a71\u52a8\u4e2d\u521b\u5efasysfs\u63a5\u53e3"},"content":{"rendered":"<h2> <span><\/span><span style=\"padding: 2px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px\">\u524d\u8a00<\/span><span style=\"vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent\"> <\/span> <\/h2>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u5728\u4e00\u4e9b\u5f00\u53d1\u677f\u4e2d\uff0c\u7ecf\u5e38\u53ef\u4ee5\u770b\u5230\u901a\u8fc7echo\u7684\u65b9\u5f0f\u6765\u76f4\u63a5\u63a7\u5236\u786c\u4ef6\u6216\u8005\u4fee\u6539\u9a71\u52a8\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>\/\/\u706f\u706d\necho&nbsp;0&nbsp;&amp;gt;\/sys\/class\/leds\/firefly:blue:power\/brightness&nbsp;\n\/\/\u706f\u4eae\necho&nbsp;1&nbsp;&amp;gt;\/sys\/class\/leds\/firefly:blue:power\/brightness<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u8fd9\u662f\u600e\u4e48\u505a\u5230\u5462\uff1f<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u5b9e\u9645\u4e0a\uff0c\u8fd9\u662f\u56e0\u4e3a\u5728\u9a71\u52a8\u4e2d\u63d0\u4f9b\u4e86sysfs\u63a5\u53e3\u7ed9\u7528\u6237\u4f7f\u7528\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u901a\u8fc7cat\u6216\u8005echo\u547d\u4ee4\u6765\u67e5\u770b\u548c\u4fee\u6539\u9a71\u52a8\u4e2d\u67d0\u4e9b\u53d8\u91cf\u7684\u503c\u3002<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u4e0b\u9762\u4ecb\u7ecd\u9a71\u52a8\u4e2d\u521b\u5efasysfs\u63a5\u53e3\u7684\u65b9\u6cd5\u3002<\/p>\n<h2> <span><\/span><span style=\"padding: 2px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px\">sysfs\u63a5\u53e3\u521b\u5efa<\/span><span style=\"vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent\"> <\/span> <\/h2>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\"><strong>1\u3001\u4f7f\u7528DEVICE_ATTR\u58f0\u660e\u4e00\u4e2asys\u8282\u70b9<\/strong><\/p>\n<pre>static&nbsp;DEVICE_ATTR(led_status,&nbsp;0600,&nbsp;led_status_show,&nbsp;led_status_store);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">led_status\uff1a\u5728sys\u63a5\u53e3\u4e2d\u663e\u793a\u7684\u8282\u70b9\u540d\u5b57<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">0600\uff1a\u8868\u793a\u64cd\u4f5c\u8fd9\u4e2aled_status\u8282\u70b9\u7684\u6743\u9650<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">led_status_show\uff1a\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770bsys\u63a5\u53e3\u65f6\u8c03\u7528\u7684\u51fd\u6570<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">led_status_store\uff1a\u4f7f\u7528echo\u547d\u4ee4\u5f80sys\u63a5\u53e3\u5199\u5165\u5185\u5bb9\u65f6\u8c03\u7528\u7684\u51fd\u6570<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\"><strong>2\u3001\u5b8c\u6210sys\u8282\u70b9\u7684\u8bfb\u5199\u51fd\u6570<\/strong><\/p>\n<pre>static&nbsp;unsigned&nbsp;int&nbsp;led&nbsp;=&nbsp;0;\n\/*\n*&nbsp;&nbsp;sys\u8282\u70b9\u7684\u8bfb\u51fd\u6570\n*&nbsp;&nbsp;\u6267\u884c&nbsp;cat&nbsp;\/sys\/devices\/platform\/leds\/led_status\u65f6\u4f1a\u8c03\u7528\n*\/\nstatic&nbsp;ssize_t&nbsp;led_status_show(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;char&nbsp;*buf)\n{\n&nbsp;&nbsp;\/\/buf\u662f\u901a\u8fc7cat\u547d\u4ee4\u663e\u793a\u5230\u7ec8\u7aef\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u663e\u793aled\u53d8\u91cf\n&nbsp;return&nbsp;sprintf(buf,&nbsp;\"%s:%d.\n\",&nbsp;\"led\",&nbsp;led);\n}\n\n\/**\n*&nbsp;&nbsp;sys\u8282\u70b9\u7684\u5199\u51fd\u6570\n*&nbsp;&nbsp;\u7528echo\u547d\u4ee4\u5f80sys\u8282\u70b9\u5199\u5165\u5185\u5bb9\u65f6\uff0c\u4f1a\u8c03\u7528\u8be5\u51fd\u6570\n*\/\nstatic&nbsp;ssize_t&nbsp;led_status_store(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;const&nbsp;char&nbsp;*buf,&nbsp;size_t&nbsp;count)\n{\n&nbsp;&nbsp;\/\/\u5199\u5165\u7684\u5185\u5bb9\u4f1a\u5b58\u653e\u5230buf\u4e2d\uff0c\u8fd9\u91cc\u5c06buf\u5185\u5bb9\u8d4b\u503c\u7ed9led\u53d8\u91cf\n&nbsp;sscanf(buf,&nbsp;\"%d\",&nbsp;&amp;amp;led);\n\n&nbsp;return&nbsp;count;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u793a\u4f8b\u4e2d\uff0cled_status_show()\u51fd\u6570\u548cled_status_store()\u51fd\u6570\u7684\u4f5c\u7528\u5206\u4e3a<strong>\u6253\u5370led\u53d8\u91cf\u7684\u503c<\/strong>\u548c<strong>\u4fee\u6539led\u53d8\u91cf\u7684\u503c<\/strong>.<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\"><strong>3\u3001\u5b9a\u4e49struct attribute\u548cstruct attribute_group\u6570\u7ec4<\/strong><\/p>\n<pre>static&nbsp;struct&nbsp;attribute&nbsp;*led_attributes[]={\n&nbsp;\n&nbsp;&nbsp;\/*\u4e0a\u8ff0\u4f7f\u7528\u4e86DEVICE_ATTR\u58f0\u660e\u8282\u70b9\u540d\u5b57\u4e3aled_status\uff0c\n&nbsp;&nbsp;*&nbsp;\u5219struct&nbsp;attribute\u540d\u5b57\u5e94\u4e3a\uff1a\n&nbsp;&nbsp;*&nbsp;&nbsp;dev_attr_&nbsp;+&nbsp;(\u8282\u70b9\u540d)&nbsp;+&nbsp;.attr\n&nbsp;&nbsp;*&nbsp;\u6240\u4ee5\u540d\u5b57\u4e3adev_attr_led_status.attr\n&nbsp;&nbsp;*\/\n&nbsp;&nbsp;&amp;amp;dev_attr_led_status.attr,\n&nbsp;NULL,\n};\n\n\nstatic&nbsp;const&nbsp;struct&nbsp;attribute_group&nbsp;led_attrs={\n&nbsp;.attrs&nbsp;=&nbsp;led_attributes,\/\/\u5f15\u7528\u4e0a\u8ff0struct&nbsp;attribute\u6570\u7ec4\n};<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u4e0a\u8ff0\u4f7f\u7528\u4e86DEVICE_ATTR\u58f0\u660e\u8282\u70b9\u540d\u5b57\u4e3aled_status\uff0c \u5219struct attribute\u540d\u5b57\u5e94\u4e3a\uff1adev_attr_ + (\u8282\u70b9\u540d) + .attr\u3002\u6240\u4ee5\u540d\u5b57\u4e3adev_attr_led_status.attr\u3002<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\"><strong>4\u3001\u5728probe\u51fd\u6570\u4e2d\u8c03\u7528sysfs_create_group()\u51fd\u6570\u6ce8\u518csysfs\u63a5\u53e3<\/strong><\/p>\n<h2> <span><\/span><span style=\"padding: 2px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px\">\u5b8c\u6574\u4f8b\u5b50<\/span><span style=\"vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent\"> <\/span> <\/h2>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u8bbe\u5907\u6811\uff1a<\/p>\n<pre>&nbsp;leds:leds{\n&nbsp;&nbsp;compatible&nbsp;=&nbsp;\"xx,xx-led\";\n&nbsp;};<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u9a71\u52a8\uff1a<\/p>\n<pre>static&nbsp;unsigned&nbsp;int&nbsp;led&nbsp;=&nbsp;0;\n\nstatic&nbsp;ssize_t&nbsp;led_status_show(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;char&nbsp;*buf)\n{\n&nbsp;return&nbsp;sprintf(buf,&nbsp;\"%s:%d.\n\",&nbsp;\"led\",&nbsp;led);\n}\n\nstatic&nbsp;ssize_t&nbsp;led_status_store(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;const&nbsp;char&nbsp;*buf,&nbsp;size_t&nbsp;count)\n{\n&nbsp;sscanf(buf,&nbsp;\"%d\",&nbsp;&amp;amp;led);\n\n&nbsp;return&nbsp;count;\n}\n\nstatic&nbsp;DEVICE_ATTR(led_status,&nbsp;0600,&nbsp;led_status_show,&nbsp;led_status_store);\n\nstatic&nbsp;struct&nbsp;attribute&nbsp;*led_attributes[]={\n&nbsp;&amp;amp;dev_attr_led_status.attr,\n&nbsp;NULL,\n};\n\n\nstatic&nbsp;const&nbsp;struct&nbsp;attribute_group&nbsp;led_attrs={\n&nbsp;.attrs&nbsp;=&nbsp;led_attributes,\n};\n\nstatic&nbsp;int&nbsp;xx_led_probe(struct&nbsp;platform_device&nbsp;*pdev)\n{\n&nbsp;sysfs_create_group(&amp;amp;pdev-&amp;gt;dev.kobj,&nbsp;&amp;amp;led_attrs);\n&nbsp;return&nbsp;0;\n}\n\nstatic&nbsp;int&nbsp;xx_led_remove(struct&nbsp;platform_device&nbsp;*pdev)\n{\n&nbsp;sysfs_remove_group(&amp;amp;pdev-&amp;gt;dev.kobj,&nbsp;&amp;amp;led_attrs);\n&nbsp;return&nbsp;0;\n}\n\nstatic&nbsp;const&nbsp;struct&nbsp;of_device_id&nbsp;xx_led_of_match[]&nbsp;=&nbsp;{\n&nbsp;{.compatible&nbsp;=&nbsp;\"xx,xx-led\"},\n};\n\n\nstatic&nbsp;struct&nbsp;platform_driver&nbsp;xx_led_driver&nbsp;=&nbsp;{\n&nbsp;.probe&nbsp;=&nbsp;xx_led_probe,\n&nbsp;.remove&nbsp;=&nbsp;xx_led_remove,\n&nbsp;.driver&nbsp;=&nbsp;{\n&nbsp;&nbsp;.name&nbsp;=&nbsp;\"xx-led\",\n&nbsp;&nbsp;.owner&nbsp;=&nbsp;THIS_MODULE,\n&nbsp;&nbsp;.of_match_table&nbsp;=&nbsp;xx_led_of_match,\n&nbsp;},\n};\n\nstatic&nbsp;int&nbsp;__init&nbsp;xx_led_init(void)\n{\n&nbsp;return&nbsp;platform_driver_register(&amp;amp;xx_led_driver&nbsp;);\n}\n\nstatic&nbsp;void&nbsp;__exit&nbsp;xx_led_exit(void)\n{\n&nbsp;platform_driver_unregister(&amp;amp;xx_led_driver);\n}\n\nmodule_init(xx_led_init);\nmodule_exit(xx_led_exit);\n\nMODULE_LICENSE(\"GPL\");\nMODULE_DESCRIPTION(\"xx&nbsp;led&nbsp;driver\");\nMODULE_AUTHOR(\"Vincent\");\nMODULE_VERSION(\"V1.0.00\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\">\u9a71\u52a8\u52a0\u8f7d\u540e\uff0c\u5c31\u53ef\u4ee5\u5728linux\u7ec8\u7aef\u4e2d\uff0c\u4f7f\u7528cat\u548cecho\u547d\u4ee4\u6765\u67e5\u770b\u548c\u4fee\u6539\u9a71\u52a8\u4e2dled\u53d8\u91cf\u7684\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>\/\/\u67e5\u770bled\u53d8\u91cf\u7684\u503c\ncat&nbsp;\/sys\/devices\/platform\/leds\/led_status\nled:0.\n\n\/\/\u4fee\u6539led\u53d8\u91cf\u7684\u503c\u4e3a9\necho&nbsp;9&nbsp;&amp;gt;&nbsp;\/sys\/devices\/platform\/leds\/led_status\n\/\/\u67e5\u770b\ncat&nbsp;\/sys\/devices\/platform\/leds\/led_status\nled:9.<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fLinux\u9a71\u52a8 | \u5728\u9a71\u52a8\u4e2d\u521b\u5efasysfs\u63a5\u53e3\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728\u4e00\u4e9b\u5f00\u53d1\u677f\u4e2d\uff0c\u7ecf\u5e38\u53ef\u4ee5\u770b\u5230\u901a\u8fc7echo\u7684\u65b9\u5f0f\u6765\u76f4\u63a5\u63a7\u5236\u786c\u4ef6\u6216\u8005\u4fee\u6539\u9a71\u52a8\uff0c\u4f8b\u5982\uff1a \/\/\u706f\u706d echo&nbsp;0&nbsp;&amp;gt;\/sys\/class\/leds\/firefly:blue:power\/brightness&nbsp; \/\/\u706f\u4eae echo&nbsp;1&nbsp;&amp;gt;\/sys\/class\/leds\/firefly:blue:power\/brightness \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u662f\u600e\u4e48\u505a\u5230\u5462\uff1f \u5b9e\u9645\u4e0a\uff0c\u8fd9\u662f\u56e0\u4e3a\u5728\u9a71\u52a8\u4e2d\u63d0\u4f9b\u4e86sysfs\u63a5\u53e3\u7ed9\u7528\u6237\u4f7f\u7528\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u901a\u8fc7cat\u6216\u8005echo\u547d\u4ee4\u6765\u67e5\u770b\u548c\u4fee\u6539\u9a71\u52a8\u4e2d\u67d0\u4e9b\u53d8\u91cf\u7684\u503c\u3002 \u4e0b\u9762\u4ecb\u7ecd\u9a71\u52a8\u4e2d\u521b\u5efasysfs\u63a5\u53e3\u7684\u65b9\u6cd5\u3002 sysfs\u63a5\u53e3\u521b\u5efa \u57fa\u672c\u6b65\u9aa4\uff1a 1\u3001\u4f7f\u7528DEVICE_ATTR\u58f0\u660e\u4e00\u4e2asys\u8282\u70b9 static&nbsp;DEVICE_ATTR(led_status,&nbsp;0600,&nbsp;led_status_show,&nbsp;led_status_store); \u767b\u5f55\u540e\u590d\u5236 led_status\uff1a\u5728sys\u63a5\u53e3\u4e2d\u663e\u793a\u7684\u8282\u70b9\u540d\u5b57 0600\uff1a\u8868\u793a\u64cd\u4f5c\u8fd9\u4e2aled_status\u8282\u70b9\u7684\u6743\u9650 led_status_show\uff1a\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770bsys\u63a5\u53e3\u65f6\u8c03\u7528\u7684\u51fd\u6570 led_status_store\uff1a\u4f7f\u7528echo\u547d\u4ee4\u5f80sys\u63a5\u53e3\u5199\u5165\u5185\u5bb9\u65f6\u8c03\u7528\u7684\u51fd\u6570 2\u3001\u5b8c\u6210sys\u8282\u70b9\u7684\u8bfb\u5199\u51fd\u6570 static&nbsp;unsigned&nbsp;int&nbsp;led&nbsp;=&nbsp;0; \/* *&nbsp;&nbsp;sys\u8282\u70b9\u7684\u8bfb\u51fd\u6570 *&nbsp;&nbsp;\u6267\u884c&nbsp;cat&nbsp;\/sys\/devices\/platform\/leds\/led_status\u65f6\u4f1a\u8c03\u7528 *\/ static&nbsp;ssize_t&nbsp;led_status_show(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;char&nbsp;*buf) { &nbsp;&nbsp;\/\/buf\u662f\u901a\u8fc7cat\u547d\u4ee4\u663e\u793a\u5230\u7ec8\u7aef\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u663e\u793aled\u53d8\u91cf &nbsp;return&nbsp;sprintf(buf,&nbsp;&#8220;%s:%d. &#8220;,&nbsp;&#8220;led&#8221;,&nbsp;led); } \/** *&nbsp;&nbsp;sys\u8282\u70b9\u7684\u5199\u51fd\u6570 *&nbsp;&nbsp;\u7528echo\u547d\u4ee4\u5f80sys\u8282\u70b9\u5199\u5165\u5185\u5bb9\u65f6\uff0c\u4f1a\u8c03\u7528\u8be5\u51fd\u6570 *\/ static&nbsp;ssize_t&nbsp;led_status_store(struct&nbsp;device&nbsp;*dev,&nbsp;struct&nbsp;device_attribute&nbsp;*attr,&nbsp;const&nbsp;char&nbsp;*buf,&nbsp;size_t&nbsp;count) { &nbsp;&nbsp;\/\/\u5199\u5165\u7684\u5185\u5bb9\u4f1a\u5b58\u653e\u5230buf\u4e2d\uff0c\u8fd9\u91cc\u5c06buf\u5185\u5bb9\u8d4b\u503c\u7ed9led\u53d8\u91cf &nbsp;sscanf(buf,&nbsp;&#8220;%d&#8221;,&nbsp;&amp;amp;led); &nbsp;return&nbsp;count; } \u767b\u5f55\u540e\u590d\u5236 \u793a\u4f8b\u4e2d\uff0cled_status_show()\u51fd\u6570\u548cled_status_store()\u51fd\u6570\u7684\u4f5c\u7528\u5206\u4e3a\u6253\u5370led\u53d8\u91cf\u7684\u503c\u548c\u4fee\u6539led\u53d8\u91cf\u7684\u503c. 3\u3001\u5b9a\u4e49struct attribute\u548cstruct attribute_group\u6570\u7ec4 static&nbsp;struct&nbsp;attribute&nbsp;*led_attributes[]={ &nbsp; &nbsp;&nbsp;\/*\u4e0a\u8ff0\u4f7f\u7528\u4e86DEVICE_ATTR\u58f0\u660e\u8282\u70b9\u540d\u5b57\u4e3aled_status\uff0c &nbsp;&nbsp;*&nbsp;\u5219struct&nbsp;attribute\u540d\u5b57\u5e94\u4e3a\uff1a &nbsp;&nbsp;*&nbsp;&nbsp;dev_attr_&nbsp;+&nbsp;(\u8282\u70b9\u540d)&nbsp;+&nbsp;.attr &nbsp;&nbsp;*&nbsp;\u6240\u4ee5\u540d\u5b57\u4e3adev_attr_led_status.attr &nbsp;&nbsp;*\/ &nbsp;&nbsp;&amp;amp;dev_attr_led_status.attr, &nbsp;NULL, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-16514","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=16514"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16514\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=16514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=16514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=16514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}