<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>I2C等等、単純な文字列でくるパケットのソートのお話 今まではgrepで処理やってました が、これスペース区切りである事が前提であれば、区切り文字で配列に突っ込むだけで良い 実際のところ def send_response(str): # 本来は何か素敵な出力をしてくれます print(str) command = &quot;request 1 &quot; # コマンドをスペースで分割 command_parts = command.split(&quot; &quot;) # 受信したコマンドの最初の部分だけを比較 if command_parts[0] in [&quot;start&quot;, &quot;request&quot;, &quot;end&quot;]: send…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2023%2F07%2F31%2F225746&quot; title=&quot;&amp;quot;command data1 data2&amp;quot;なテキストを判定する単純な話 - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-31 22:57:46</published>
  <title>&quot;command data1 data2&quot;なテキストを判定する単純な話</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2023/07/31/225746</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
