esp-idf-lib/devtools/spec/spec_helper.rb

Mon, 03 Apr 2023 16:07:34 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 03 Apr 2023 16:07:34 +0200
changeset 12
bb72d448e282
parent 1
1c9894662795
permissions
-rw-r--r--

In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.

# frozen_string_literal: true

require "rspec"
require "yaml"
require_relative "metadata"

@component_dir = File.expand_path(File.join(File.dirname(__FILE__), "../../components"))

def metadata_array
  directories = Dir.children(Dir.new(@component_dir)).map { |c| File.join(@component_dir, c) }
  directories = directories.select { |d| File.directory?(d) }
  directories.map { |path| Metadata.new(path) }
end

mercurial