Advertisement
IgorKan

Perplexity Make And Select Table.

Apr 3rd, 2025 (edited)
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- Объединение таблиц
  2. local merged = {}
  3. for k, v in pairs(node.info("hw")) do merged[k] = v end
  4. for k, v in pairs(node.info("sw_version")) do merged[k] = v end
  5.  
  6. -- Фильтрация по требуемым ключам
  7. local target_keys = { 'flash_id', 'chip_id', 'git_commit_dts' }
  8. local result = {}
  9. for _, key in ipairs(target_keys) do result[key] = merged[key] end
  10.  
Tags: ESP8266
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement